Error adding new command

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sal@coned
Posts: 72
Joined: Thu Jan 21, 2010 4:42 pm

Error adding new command

Post 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
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Error adding new command

Post 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.
User avatar
admin
Site Admin
Posts: 256
Joined: Mon Oct 12, 2009 8:21 am

Re: Error adding new command

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Ethan Galstad
President
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Error adding new command

Post by mmestnik »

I opened a ticket for this because of it's effect on multiple users.
http://tracker.nagios.com/view.php?id=21
Locked