Page 6 of 6
Re: Plug-In Tutorials
Posted: Wed Feb 27, 2013 1:50 pm
by slansing
Yes, we have established that that plugin is faulty, however the majority of the other apache plugins should work. Such as check_apache_status.pl
http://exchange.nagios.org/directory/Pl ... us/details
Test with the following command once it is uploaded:
Code: Select all
/usr/local/nagios/libexec/check_apache_status -H address.of.apache.server -v requests_per_second
Re: Plug-In Tutorials
Posted: Wed Feb 27, 2013 2:18 pm
by A.Cormack
Yay!
Code: Select all
./check_apache_status -H 192.168.19.136 -v requests_per_second
Output:
Code: Select all
APACHE OK:requests_per_second is .00946
----
Command Management
Code: Select all
Command Name: check_apache_status
Command Line: $USER1$/check_apache_status -H $HOSTADDRESS$ -a $ARG1$
Command Type: check command
Service Management
Code: Select all
Config Name: check_apache_status
Check Command: check_apache_status
$ARG1$: -w 0.5 -c 2
However, Nagios service screen outputs
So I'm guessing my $ARG1$ is wrong? Sorry about this, nearly there... well on one plugin lol
Re: Plug-In Tutorials
Posted: Wed Feb 27, 2013 2:36 pm
by sreinhardt
If you are looking to get requests per second, you want the command definition to look something like:
Code: Select all
Command Name: check_apache_status
Command Line: $USER1$/check_apache_status -H $HOSTADDRESS$ -v requests_per_second $ARG1$
Command Type: check command
Then you can use arg1 to just hold warning and critical as you had done.
Re: Plug-In Tutorials
Posted: Wed Feb 27, 2013 2:40 pm
by A.Cormack
Seems to work like a treat! Thanks so much for your patience and help

.
I need to look for 2 more plug-ins now. is there anything I should be looking for when I select them? To make sure their compatable?
Re: Plug-In Tutorials
Posted: Wed Feb 27, 2013 2:52 pm
by sreinhardt
That's tough to say, probably continue to look for ones that are recommended by others. Ideally also recently created or updated. You might also try searching the forums or google for the name before choosing it. If its alright with you, I would like to lock this one, and we can start another if you have issues with another plugin.
Re: Plug-In Tutorials
Posted: Wed Feb 27, 2013 2:55 pm
by A.Cormack
Yeah thats perfectly fine

. Thanks for your help. I'm gonna just grind away if I have any problems.... I've opened a few.. long and pointless threads lol.
Re: Plug-In Tutorials
Posted: Wed Feb 27, 2013 2:59 pm
by slansing
That's fine, just let us know if you run into a real stumper.