Nagios service failed to restart

Hi, i cannot restart my nagios service after i configure nfs monitoring for my clients and i got the following error

 

Checking objects...
Error: Service check command 'check_nfs.sh' specified in service 'NFS' for host 'ws2.example.com' not defined anywhere!
Tags: Monitoring tool Nagios
user image Author :   eldhapearline
0

have you defined check_nfs.sh command on your command.cfg file (/usr/local/nagios/etc/objects/commands.cfg) you need to mention the command as shown below on your commands.cfg file

define command{
        command_name    check_nfs
        command_line    $USER1$/check_nfs.sh -I $HOSTADDRESS$ $ARG1$
        }
user image
parthiban April 16, 2018
thank you Elakkiya April 24, 2018
Add comment