Error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
shailesh.vishe
Posts: 1
Joined: Thu May 29, 2014 10:40 pm

Error

Post by shailesh.vishe »

Error: Service check command 'php check_terastation_storage.php 172.16.81.26 public 10 5' specified in service 'check_terastation_storage' for host 'BKP_NAS' not defined anywhere!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Error

Post by tmcdonald »

You need to create a command for that php script like so:

Code: Select all

define command {
  command_name    check_terastation_storage
  command_line    /usr/bin/php /usr/local/nagios/libexec/check_terastation_storage.php 172.16.81.26 public 10 5
}
Of course change the paths according to your own environment. Then you will need to apply that command to your service as usual.

http://nagios.sourceforge.net/docs/3_0/ ... ml#command
Former Nagios employee
Locked