Interface service using check_netint.pl not graphing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Atria
Posts: 45
Joined: Wed Aug 26, 2015 11:31 am

Interface service using check_netint.pl not graphing

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Interface service using check_netint.pl not graphing

Post 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$
}
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Atria
Posts: 45
Joined: Wed Aug 26, 2015 11:31 am

Re: Interface service using check_netint.pl not graphing

Post 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$
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Interface service using check_netint.pl not graphing

Post by hsmith »

Thank you for the feedback. I'll go ahead and lock this one up.
Former Nagios Employee.
me.
Locked