Page 1 of 1

Error adding new command

Posted: Mon Mar 22, 2010 2:00 pm
by sal@coned
I am getting the following error when I add a plugin.

Error: Service check command 'check_netapp_snmp' specified in service 'filer_cpu_test' for host 'filer-dr-1' not defined anywhere!

I followed these steps:
copied the check_netapp3.pl file into /usr/local/nagios/libexec/ directory and assigned 755 rights to it.
added a check command, saved and applied succesfully
created new service, saved and applied succesfully
assigned hostgroup to service, apply fails.

If I remove the hostgroup from the service it applies the config succesfully.

Is there a step I am missing?

Thanks,
Sal

Re: Error adding new command

Posted: Mon Mar 22, 2010 9:03 pm
by mmestnik
It looks like you need to define check_netapp_snmp as a command that will run $USER1$/check_netapp3.pl with the correct parameters. Check the documentation or check_netapp3.pl --help for more information.

Re: Error adding new command

Posted: Tue Mar 23, 2010 9:39 am
by admin
Did you take a look at the error configuration snapshot? The text file associated with the snapshot can be downloaded and viewed to see what is causing the error.

Re: Error adding new command

Posted: Tue Mar 23, 2010 1:20 pm
by mmestnik
I opened a ticket for this because of it's effect on multiple users.
http://tracker.nagios.com/view.php?id=21