-
Notifications
You must be signed in to change notification settings - Fork 36
Description
Hi
I am using the great check script included "check_nwc_health" to monitor my Nexus switches... but sadly the check does not go well with the graphs (I'm using influxdb)
Below is the check I run, and the output I get... which looks OK to me.. but sadly only two graphs are created with "interface usage" and "interface traffic" but only for Ethernet1/10... I have of cause given it a bit of time to create the graphs.. but I only ended up with two for this specific port... I then upgraded OMD from 5.40 to 5.50 but with no change...
Not sure it is it because the interface contains a slash?
Seems a but sad that it does't work like expected? Any ideas to check or change?
I can see that the default "srv-perf" template is used and this calls:
/blah/grafana/dashboard/script/histou.js?host=$HOSTNAME$&service=$SERVICEDESC$&theme=light&annotations=true
OMD[]:~/lib/nagios/plugins$ ./check_nwc_health --hostname 10.255.0.155 --community cshm1! --mode interface-usage --name 'Ethernet1/(1|2|7|8|9|10|13)$' --regexp --multiline --units MB
OK - interface Ethernet1/1 (alias Intra-cluster Node Port) usage is in:0.23% (28.16MB/s) out:0.28% (35.20MB/s)
interface Ethernet1/2 (alias Intra-cluster Node Port) usage is in:0.28% (35.20MB/s) out:0.23% (28.16MB/s)
interface Ethernet1/7 (alias Intra-Cluster ISL Port) usage is in:0.00% (0.00MB/s) out:0.00% (0.00MB/s)
interface Ethernet1/8 (alias Intra-Cluster ISL Port) usage is in:0.00% (0.00MB/s) out:0.00% (0.00MB/s)
interface Ethernet1/9 (alias MetroCluster Node Port) usage is in:0.40% (50.50MB/s) out:0.44% (54.79MB/s)
interface Ethernet1/10 (alias MetroCluster Node Port) usage is in:0.58% (72.89MB/s) out:0.35% (43.61MB/s)
interface Ethernet1/13 (alias MetroCluster ISL Port native speed) usage is in:0.36% (45.03MB/s) out:0.56% (70.01MB/s) | 'Ethernet1/1_usage_in'=0.23%;80;90;0;100 'Ethernet1/1_usage_out'=0.28%;80;90;0;100 'Ethernet1/1_traffic_in'=28.16MB;10000;11250;0;12500 'Ethernet1/1_traffic_out'=35.20MB;10000;11250;0;12500 'Ethernet1/2_usage_in'=0.28%;80;90;0;100 'Ethernet1/2_usage_out'=0.23%;80;90;0;100 'Ethernet1/2_traffic_in'=35.20MB;10000;11250;0;12500 'Ethernet1/2_traffic_out'=28.16MB;10000;11250;0;12500 'Ethernet1/7_usage_in'=0.00%;80;90;0;100 'Ethernet1/7_usage_out'=0.00%;80;90;0;100 'Ethernet1/7_traffic_in'=0.00MB;10000;11250;0;12500 'Ethernet1/7_traffic_out'=0.00MB;10000;11250;0;12500 'Ethernet1/8_usage_in'=0.00%;80;90;0;100 'Ethernet1/8_usage_out'=0.00%;80;90;0;100 'Ethernet1/8_traffic_in'=0.00MB;10000;11250;0;12500 'Ethernet1/8_traffic_out'=0.00MB;10000;11250;0;12500 'Ethernet1/9_usage_in'=0.40%;80;90;0;100 'Ethernet1/9_usage_out'=0.44%;80;90;0;100 'Ethernet1/9_traffic_in'=50.50MB;10000;11250;0;12500 'Ethernet1/9_traffic_out'=54.79MB;10000;11250;0;12500 'Ethernet1/10_usage_in'=0.58%;80;90;0;100 'Ethernet1/10_usage_out'=0.35%;80;90;0;100 'Ethernet1/10_traffic_in'=72.89MB;10000;11250;0;12500 'Ethernet1/10_traffic_out'=43.61MB;10000;11250;0;12500 'Ethernet1/13_usage_in'=0.36%;80;90;0;100 'Ethernet1/13_usage_out'=0.56%;80;90;0;100 'Ethernet1/13_traffic_in'=45.03MB;10000;11250;0;12500 'Ethernet1/13_traffic_out'=70.01MB;10000;11250;0;12500