Page 1 of 1

Interface status

Posted: Tue Oct 15, 2013 1:47 am
by veenm
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$
}

Re: Interface status

Posted: Tue Oct 15, 2013 11:51 am
by sreinhardt
Is it administratively up but nothing connected or administratively down? From my understanding it should show critical for admin up but otherwise down, and warning for admin down. You might try adding the "-D c" flag to your command.