check_hddtemp.sh plugin
Posted: Thu Jul 12, 2012 3:50 am
"check_hddtemp.sh" plugin is not working in Nagios Core 3 web interface. But, it is working through command line. Please have a look of below configuration.
[root@localhost/root]#./check_hddtemp.sh /dev/sda 40 50
OK: Temperature is below warn treshold (/dev/sda is 34)
Nagios "commands.cfg" file
define command{
command_name check_hddtemp.sh
command_line $USER1$/check_hddtemp.sh -H $HOSTADDRESS$ -p $ARG1$ $ARG2$
}
Nagios "localhost.cfg" file
define service{
use local-service ; Name of service template to use
host_name localhost
service_description Hard Disk Temperature
check_command check_hddtemp.sh!40!50
notifications_enabled 0
}
Let me know if i miss something to mention.
Nishith N.Vyas
[root@localhost/root]#./check_hddtemp.sh /dev/sda 40 50
OK: Temperature is below warn treshold (/dev/sda is 34)
Nagios "commands.cfg" file
define command{
command_name check_hddtemp.sh
command_line $USER1$/check_hddtemp.sh -H $HOSTADDRESS$ -p $ARG1$ $ARG2$
}
Nagios "localhost.cfg" file
define service{
use local-service ; Name of service template to use
host_name localhost
service_description Hard Disk Temperature
check_command check_hddtemp.sh!40!50
notifications_enabled 0
}
Let me know if i miss something to mention.
Nishith N.Vyas