Closed (fixed)
Project:
Nagios Monitoring
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2011 at 20:32 UTC
Updated:
15 Jun 2011 at 18:02 UTC
Jump to comment: Most recent file
Comments
Comment #1
bstanfield commentedsubscribe
Comment #2
gadams commentedsubscribing
Comment #3
basicmagic.net commentedsubscribe
Comment #4
Berromator Technologies commentedsubscribe
Comment #5
helmo commentedsubscribe
Comment #6
greg.harveyDepends upon:
http://drupal.org/node/796864#comment-4280640
Will set back to active once the Drupal 6.x-1.0 release is out of the door. In the mean time, patches welcome!
Comment #7
aethiolas commentedsub
Comment #8
raystuart commentedHere is a patch that at least seems to be working for me on D7. The bulk of the changes are coming from Coder Upgrade. Then, nagios_status_page() required a change re http://drupal.org/node/224333#theme_page. After that, I made modifications to nagios_check_session_anon() and nagios_check_session_auth(), since it looks like sess_count() is no longer available in D7 - http://drupal.org/node/655212#comment-2365590.
I haven't yet looked at any of the other nagios_check_* functions, since they seem to be working. I did enable an older version of a module as a test, and nagios did issue a warning and listed the module as NOT CURRENT.
Haven't tried anything with nrpe, but each of the drush nagios commands seemed to return correct numbers on a pretty bare-bones site.
Comment #9
helmo commentedComment #10
greg.harveyOh, very cool - thanks for pushing this along! Does anyone else have a D7 Nagios set-up to test this? I can probably sort something out next month, but if we get some community reviews ahead of that then maybe we can get a 7.x-1.x-dev up faster. =)
In fact, I'm inclined to just use this, if I get chance to give it a quick once-over.
Comment #11
helmo commentedThe patch seems OK.
It works so far, both via http and drush
Comment #12
raystuart commentedIt's still working fine for me, but I'm attaching another patch. Also, I'd forgotten to mention this change above.
The original admin page was at admin/config/nagios. In the first patch, I'd put it at
admin/config/monitoring/nagiosand created a Monitoring section atadmin/config/monitoring. In this patch, I put the admin page atadmin/config/system/nagiosso it shows up alongside cron, site info, and such. That should be a better place for it, no?Comment #13
nmcclain commentedI am using this in production and it's working great. I ran it through Coder and there were only a few minor warnings -- I'd love to see this as a dev release.
Thank you to raystuart and greg.harvey!!
Comment #14
greg.harveyDon't thank me, it's all raystuart. Will try to remember to roll a dev snapshot tomorrow. Thanks for the feedback!
Comment #15
coderintherye commentedI can confirm this is working. Much thanks raystuart.
A note to anyone who downloads 6.x-1.x and then applies this patch, make sure to also remove the extra lines that drupal.org adds to the tarball download:
Would be great to see this up as an actual release.
Comment #16
greg.harveyDrupal 7 dev snapshot rolled. It will be available shortly. We'll let that roll for a while and if no one has any problems it can go beta1 like the Drupal 6 release.
Comment #17
coderintherye commentedAwesome, thanks both :)