check_netint.pl and pnp4nagios

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

check_netint.pl and pnp4nagios

Postby freddy00 » Mon Jun 03, 2019 10:10 am

Hello.
I'm using "check_netint.pl" aka "check_snmp_netint.pl" for network traffic monitoring.
The plugin works fine, but if I add the "-m" or "-mm" options (minimize/minimum queries) I got no PNP graphics. Error: no xml file is created.

this is the performance output without "-m" / "-mm" options (PNP works fine):
'GigabitEthernet0/0/1_in_octet'=6836631772c 'GigabitEthernet0/0/1_out_octet'=79562367274c ptime=1559574104

this is with "-m", which is the same as with "-mm" (no xml/rrd file is created, so PNP doesn't work):
'GigabitEthernet0/0/1_in_octet'=6836687027c 'GigabitEthernet0/0/1_out_octet'=79562570344c cache_descr_ids=6 cache_descr_names=GigabitEthernet0/0/1 cache_descr_time=1559572395 ptime=1559574194

does some of you know how to make PNP work with "-m" / "-mm" options?

thanks and regards,
Federico
freddy00
 
Posts: 8
Joined: Mon Dec 14, 2015 10:33 am

Re: check_netint.pl and pnp4nagios

Postby scottwilkerson » Mon Jun 03, 2019 4:35 pm

One thing to note, if you ran it once and an RRD was already created, you need to remove the RRD because it will have a different amount of datasources if you add -m or -mm

The RRD's are a fixed size once created, so you cannot change the command after it creates the rrd
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 17032
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: check_netint.pl and pnp4nagios

Postby freddy00 » Wed Jun 05, 2019 11:29 am

Hello. Thanks for your reply and your help!
no xml nor rrd files previously existed and no xml nor rrd files are generated using the -mm option.
but you gave me an hint, so I tried the following thing: I removed the "-mm" option from the command definition, waited a few minutes, confirmed both xml/rrd files were there, readded the "-mm" option in the command definition, waited a few more minutes.
result: those xml/rrd files created without the -mm options aren't updated anymore!
I suspect that "service_perfdata_file_template" should be adjusted to be used with -mm, but I could be wrong.
greetz,
Federico
freddy00
 
Posts: 8
Joined: Mon Dec 14, 2015 10:33 am

Re: check_netint.pl and pnp4nagios

Postby scottwilkerson » Wed Jun 05, 2019 11:53 am

I would need to see the fill output when running with the -mm command

is the output in the proper format (including output|perfdata)? e.g.
Code: Select all
some info|'GigabitEthernet0/0/1_in_octet'=6836687027c 'GigabitEthernet0/0/1_out_octet'=79562570344c cache_descr_ids=6 cache_descr_names=GigabitEthernet0/0/1 cache_descr_time=1559572395 ptime=1559574194


per
https://nagios-plugins.org/doc/guidelines.html#AEN200
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 17032
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: check_netint.pl and pnp4nagios

Postby scottwilkerson » Wed Jun 05, 2019 11:55 am

Also, does this have the same amount of datasources and when you ran without the -mm ? the RRD's definitely will not update if they have different amount of datasources.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 17032
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 6 guests