0

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!
Monitoring tool Nagios Add a comment
eldhapearline
asked Apr 16 2018

Answer

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$
        }
Add a comment
parthiban
asked Apr 15 2018
edited Oct 05 2018
Post your Answer