Interface status

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
veenm
Posts: 148
Joined: Tue Jun 18, 2013 5:58 am

Interface status

Post 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$
}
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Interface status

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked