Interface status
Posted: Tue Oct 15, 2013 1:47 am
I am trying to check interface status using the check_ifoperstatus plugin , however if the interface is down i am getting warning alert instead of critical alert.
check_ifoperstatus -H $HOSTADDRESS$ -C $ARG1$ -k $ARG2$
define service{
use generic-service ; Inherit values from a template
host_name xxx
service_description Port 6 Link Status
check_command check_interface!"community string"!6
}
"check_interface" command is as below..
define command {
command_name check_interface
command_line $USER1$/check_ifoperstatus -H $HOSTADDRESS$ -C $ARG1$ -k $ARG2$
}
check_ifoperstatus -H $HOSTADDRESS$ -C $ARG1$ -k $ARG2$
define service{
use generic-service ; Inherit values from a template
host_name xxx
service_description Port 6 Link Status
check_command check_interface!"community string"!6
}
"check_interface" command is as below..
define command {
command_name check_interface
command_line $USER1$/check_ifoperstatus -H $HOSTADDRESS$ -C $ARG1$ -k $ARG2$
}