uplink_bandwidth_ifstatus on HyperV VM

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
rlevick
Posts: 49
Joined: Tue Jan 07, 2014 4:20 pm

uplink_bandwidth_ifstatus on HyperV VM

Post by rlevick »

uplink_bandwidth_ifstatus is working on my physical machines, but not a migrated Hyper-V VM. For the check command check_snmp_ifstatus!"11"!75!95 I get a CRITICAL: 11 is physically DOWN response. Should I use an identifier other than 11 on a VM?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: uplink_bandwidth_ifstatus on HyperV VM

Post by tmcdonald »

The interfaces could be different on a VM than on the physical host. Have you done a snmpwalk on the host?
Former Nagios employee
rlevick
Posts: 49
Joined: Tue Jan 07, 2014 4:20 pm

Re: uplink_bandwidth_ifstatus on HyperV VM

Post by rlevick »

According to the snmpwalk, the production ehternet is ifalias.23. When I run the command manually, it works. If I change the <server>.cfg, I get an error on the console (Return code of 13 is out of bounds).

# /usr/local/nagios/libexec/check_snmp_ifstatus.pl -H 10.xx.xx.xx -C publicxxxxxxx -v 2 -i "23" -w 75 -c 95
OK: 23 is UP at 200Mbps. RX=1.819Mbps (0.9%), TX=46.23Kbps (0.02%)|RXbps=1818541;150000000;190000000;0;200000000 TXbps=46227;150000000;190000000;0;200000000 RXpct=0.9%;75;95;0;100 TXpct=0.02%;75;95;0;100 elapsed=193s;171
rlevick
Posts: 49
Joined: Tue Jan 07, 2014 4:20 pm

Re: uplink_bandwidth_ifstatus on HyperV VM

Post by rlevick »

I got it. I removed the iftraffic_if23_10.xx.xx.xx file from /tmp. Since I ran the command manually as root, the console could not overwrite the file.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: uplink_bandwidth_ifstatus on HyperV VM

Post by abrist »

Eureka! Anything else, or should we lock it up?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked