I have configured all the prereqs for the check_events.pl plugin and can successfully run the plugin from the command line. In my specific case the plugin looks at a local file on the icinga server for an up or down string. It works when I run it:
perl check_events.pl -L -U -D
I have the command configured as specified in the check_events.pl.
'check_events' command definition
command_line $USER1$/check_events.pl -w $ARG1$ -c $ARG2$ -L $ARG3$ -S $ARG4$ -D $ARG5$ -U $ARG6$
check_command check_events!-L /var/log/ -D "down" -U "up"
<> represents a path to a file that is managed by syslog-ng.
The error I get is:
The command defined for service does not exist
Anyone have any ideas? The Icinga server is functional in all other respects (and is in production) and monitors heaps of other stuff happliy.
The local-service is defined as the default service that is configured to monitor the localhost (nagios or icinga host) and is configured as 127.0.0.1
Does anyone know if this plugin is reuired to be run via NRPE or anything like that?
Any help would be great!! I can provoide additonal info, but do not have access to the server at present.