Page 1 of 1

check_ifstatus -- ifAlias question

Posted: Wed Jun 04, 2014 7:21 pm
by cdnvballer
Hi,

I'm looking at the code for check_ifstatus and I'd like to know

in the condition where there is an interface in down state (not admin down)
is the message supposed to include the ifalias associated with that interface?

reason is that I can run the check and it does properly report that a router interface is down, but all I get is something like this in my email alerts:

" Service: Interface_Status
Host: HOSTNAME
Address: ADDR
State: CRITICAL

Date/Time: Wed Jun 4 16:59:17 PDT 2014

Additional Info:
CRITICAL: host ADDR , interfaces up: 5, down: 1, dormant: 0, excluded: 0, unused: 0BRGigabitEthernet0/2: down BR"

IfName is useful, but we'd want to see the ifAlias...

Re: check_ifstatus -- ifAlias question

Posted: Thu Jun 05, 2014 1:11 pm
by sreinhardt
Just to verify, you are referring to the unused port information, and would like an option to show the ifalias in place of the ifname? I don't see why this shouldn't be do-able!

Re: check_ifstatus -- ifAlias question

Posted: Thu Jun 05, 2014 1:35 pm
by cdnvballer
ah I found my problem,

I needed to add the "-I" flag so that the service check would report on the ifAlias :)

apologies, wasn't clear to me at first..maybe lack of coffee !

Re: check_ifstatus -- ifAlias question

Posted: Thu Jun 05, 2014 2:01 pm
by sreinhardt
Ha, no worries, glad you found it!