Page 1 of 1

Interface service using check_netint.pl not graphing

Posted: Mon Sep 28, 2015 7:54 am
by Atria
I may be missing something obvious here, but I'm trying to generate a performance graph from the perf data on a service I have set up. I am using the check_netint.pl plugin with the following command

Code: Select all

define command {
       command_name                             check_Cisco_Interface_Bandwidth_In
       command_line                             $USER1$/check_netint.pl -H $HOSTADDRESS$ -C $ARG1$ -2 -n $ARG2$ -S$ARG3$ -Mgmk -w$ARG4$ -c$ARG5$
}
The service is set up as follows

Code: Select all

define service {
        service_description             Outbound Traffic
        use                             00-Template-SLA-4H
        hostgroup_name                  11-Cisco-Hostgroup-Network
        check_command                   check_Cisco_Interface_Bandwidth_In!Earth.capital.friend.!GigabitEthernet0/0!10MB!5,5!10,10!!
!
        event_handler                   process-service-perfdata-pnp-normal
        register                        1
        }
I was under the impression that the event handler would generate the graph info, and when I set up a similar service for CPU monitoring I was able to get the chart when I specified the event handler as follows

Code: Select all

Command
define command {
       command_name                             Check_Cisco_CPU-Network
       command_line                             $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C $ARG1$ -2  -w $ARG2$ -c $ARG3$ -T cis
co -f
}
Service

define service {
        service_description             CPU
        use                             00-Template-SLA-4H
        hostgroup_name                  11-Cisco-Hostgroup-Network
        check_command                   Check_Cisco_CPU-Network!Earth.capital.friend.!80,75,70!99,95,90!!!!!
        event_handler                   process-service-perfdata-pnp-normal
        register                        1
        }
The Output from the interface service appears below. Am I missing something or is this a missing perf counter, and if so where is this defined in XI?

Code: Select all

GigabitEthernet0/0:UP (0.0MBps/0.0MBps) (1 UP): OK

Re: Interface service using check_netint.pl not graphing

Posted: Mon Sep 28, 2015 9:08 am
by scottwilkerson
If this is the plugin I think it is, you need to add a -f to the command to have it return performance data.

Code: Select all

define command {
       command_name                             check_Cisco_Interface_Bandwidth_In
       command_line                             $USER1$/check_netint.pl -H $HOSTADDRESS$ -C $ARG1$ -2 -f -n $ARG2$ -S$ARG3$ -Mgmk -w$ARG4$ -c$ARG5$
}

Re: Interface service using check_netint.pl not graphing

Posted: Mon Sep 28, 2015 1:07 pm
by Atria
That was it. Took a little tweaking, but I finally got it rolling with the following command. Reports errors and drops and graphs the bandwidth. Thanks for the double check, feel free to lock this as complete.

Code: Select all

$USER1$/check_netint.pl -H $HOSTADDRESS$ -C $ARG1$ -2 -n $ARG2$ -S$ARG3$ -Y -BMgmkq -w$ARG4$ -c$ARG5$

Re: Interface service using check_netint.pl not graphing

Posted: Mon Sep 28, 2015 1:14 pm
by hsmith
Thank you for the feedback. I'll go ahead and lock this one up.