The output from he command wasnt the most helpful. Just says that -c is critical, -w warning etc.
All I want the check to do is produce a certain a warning/critical alarm when the server reaches a certain ammount of requests. So I'm guessing my $ARG1$ would be ( values are for example purpose)
Looks good. Though this plugin is an example of a poorly documented one, but at least it is easy to configure.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service 'Apache Requests' on host 'VS1'
Error: Could not register service (config file '/usr/local/nagios/etc/services/check_apacherequests.cfg', starting on line 14)
Error processing object config files!
lmiltchev wrote:
Under the "Check Settings" tab, enter the correct values
BTW, did you test your check from the command line first, to make sure it works?
That's worked a treat Configuration now saved. Thank You.
lmiltchev wrote:
BTW, did you test your check from the command line first, to make sure it works?
I didn't, I forgot... sorry. Now im paying the price for it as it says (null) under status information, so I guess i need to change $ARG1$ as the command is incorrect?
It may be reporting incorrectly formatted data. This is why I personally check all the plugins I use from the command line before configuring, this will also let you filter out problems with how you have them defined "might be the issue here." I suggest you test it from the command line and let us know what the output is. As it may provide more info than Nagios XI does when it comes to debugging..
[root@localhost libexec]# ./check_apacherequests.pl -w 2 -c 3
sh: /usr/bin/lynx: No such file or directory
Argument "" isn't numeric in numeric ge (>=) at ./check_apacherequests.pl line 76.
OK - current apache requests | 'apache requests'=;2;3
[root@localhost libexec]#
I just read it properly.... its because I havent got lynx
[root@localhost libexec]# sudo apt-get install lynx
>>> /etc/sudoers: Alias `NAGIOSXI' already defined near line 110 <<<
sudo: parse error in /etc/sudoers near line 110
sudo: no valid sudoers sources found, quitting
You have new mail in /var/spool/mail/root
[root@localhost libexec]# apt-get install lynx
-bash: apt-get: command not found
[root@localhost libexec]#