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
check_netint.pl and pnp4nagios
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check_netint.pl and pnp4nagios
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
The RRD's are a fixed size once created, so you cannot change the command after it creates the rrd
Re: check_netint.pl and pnp4nagios
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
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
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check_netint.pl and pnp4nagios
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.
per
https://nagios-plugins.org/doc/guidelines.html#AEN200
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
https://nagios-plugins.org/doc/guidelines.html#AEN200
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check_netint.pl and pnp4nagios
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.