Search found 11 matches

by Grizzly
Wed Mar 06, 2013 12:43 pm
Forum: Open Source Nagios Projects
Topic: Trouble adding check-aacraid.py to Nagios
Replies: 21
Views: 6658

Re: Trouble adding check-aacraid.py to Nagios

All is confirmed working! I unplugged one of the drives in an array I had set up and got a critical out of Nagios. :D
Thanks again!
by Grizzly
Tue Mar 05, 2013 2:59 pm
Forum: Open Source Nagios Projects
Topic: Trouble adding check-aacraid.py to Nagios
Replies: 21
Views: 6658

Re: Trouble adding check-aacraid.py to Nagios

Commented out all the code to do with the battery in check-aacraid.py and I'm now getting a status OK and status info is the same as before but with the battery status chopped off! Thanks for all the help abrist, I suppose all that's left to do now is check I get a critical when one of the arrays is...
by Grizzly
Tue Mar 05, 2013 2:26 pm
Forum: Open Source Nagios Projects
Topic: Trouble adding check-aacraid.py to Nagios
Replies: 21
Views: 6658

Re: Trouble adding check-aacraid.py to Nagios

Output is Logical Device 0 Optimal, Controller Optimal, Battery Status ZMM not installed I'll take a look through as well but I've never used python so may not get very far, have a feeling it's to do with that batter status though. EDIT: the plugin I'm using is actually a patched version of the orig...
by Grizzly
Tue Mar 05, 2013 1:55 pm
Forum: Open Source Nagios Projects
Topic: Trouble adding check-aacraid.py to Nagios
Replies: 21
Views: 6658

Re: Trouble adding check-aacraid.py to Nagios

I'm a noob, the filename uses a - not a _ like NRPE used.

Code: Select all

/usr/bin/python $USER1$/check-aacraid.py
The above gives me the correct status information, still getting a critical status though.
by Grizzly
Tue Mar 05, 2013 12:16 pm
Forum: Open Source Nagios Projects
Topic: Trouble adding check-aacraid.py to Nagios
Replies: 21
Views: 6658

Re: Trouble adding check-aacraid.py to Nagios

The path to python for me was also /usr/bin/python. Changed the command, restarted nagios and still getting null in status information.
by Grizzly
Mon Mar 04, 2013 4:23 pm
Forum: Open Source Nagios Projects
Topic: Trouble adding check-aacraid.py to Nagios
Replies: 21
Views: 6658

Re: Trouble adding check-aacraid.py to Nagios

I already had the command configured in nrpe.cfg as: command[check_aacraid]=/usr/local/sbin/check-aacraid.py But since it wasn't working I went ahead and tried removing NRPE from the equation anyway, nothing I've tried works. Here are all the different "command_line"s I tried to use in the...
by Grizzly
Mon Mar 04, 2013 3:29 pm
Forum: Open Source Nagios Projects
Topic: Trouble adding check-aacraid.py to Nagios
Replies: 21
Views: 6658

Re: Trouble adding check-aacraid.py to Nagios

Command definition is: define command { command_name check_aacraid command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_aacraid } Service definition for that command is: define service { use generic-service name aacraid-service service_description aacraid check_command check_aacraid register 0 ...
by Grizzly
Mon Mar 04, 2013 3:16 pm
Forum: Open Source Nagios Projects
Topic: Trouble adding check-aacraid.py to Nagios
Replies: 21
Views: 6658

Re: Trouble adding check-aacraid.py to Nagios

Ran the command as nagios with no problem, then did chmod u+s /usr/local/sbin/check-aacraid.py chmod u+s /usr/StorMan/arcconf as root, I think one of those is what you meant by "suid the aacraid bin". Sorry if it's not I've only been using Linux for a couple of months so I don't know all o...
by Grizzly
Mon Mar 04, 2013 2:10 pm
Forum: Open Source Nagios Projects
Topic: Trouble adding check-aacraid.py to Nagios
Replies: 21
Views: 6658

Re: Trouble adding check-aacraid.py to Nagios

Thanks for the help abrist! Changed aacraid-service to use generic-service instead of low-local-service (since I had no definition for it), then used the command slansing gave me to fix some other errors with my configuration of the new services and hey presto Nagios restarted fine and I now have aa...
by Grizzly
Mon Mar 04, 2013 12:33 pm
Forum: Open Source Nagios Projects
Topic: Trouble adding check-aacraid.py to Nagios
Replies: 21
Views: 6658

Re: Trouble adding check-aacraid.py to Nagios

Hi slansing, output from that command is as follows: Nagios Core 3.4.4 Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors Copyright (c) 1999-2009 Ethan Galstad Last Modified: 01-12-2013 License: GPL Website: http://www.nagios.org Reading configuration data... Read main c...