Host missing no snmp response, mrtg error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Host missing no snmp response, mrtg error

Post by ssax »

*** Note: This will get reverted if you upgrade and will need to be reinstalled.
*** Make sure that you have known-good backups/vm snapshots before making any modifications

The attached switch wizard will ignore those types, please go to Admin > Manage Config Wizards and click the download button next to your current one and then click the Browse button, select the attached zip file, and then click the Upload & Install button.

Then you will need to delete your /etc/mrtg/conf.d/DEVICE.cfg or /etc/mrtg/conf.d/DEVICE_PORT.cfg files and re-run the wizard for it.
switch_exclude.zip
Let me know the results
You do not have the required permissions to view the files attached to this post.
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: Host missing no snmp response, mrtg error

Post by absarcompass »

Hi ssax,
bad news, management don't want me to do the changes. My assumption is that devices will lose the previous graphs using the new switch wizard which they don't want to lose.
Instead they have asked me to do the changes one by one on each device with keeping the current data of mrtg intact.
Is there a way to append changes to current cfg files or using any way around to minus unwanted interfaces from each device.

Thanks much appreciated your effort
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Host missing no snmp response, mrtg error

Post by Box293 »

The data will still live in the RRD files. Worst case scenario is that you use this tool I created called the Performance Data Tool.

http://exchange.nagios.org/directory/Ad ... ol/details

Upload it into Nagios XI via Admin > System Extensions > Manage Components.

Access it via the Tools menu.

There is a a Merge function that allows you to take performance data from an old RRD file and merge it into another RRD file.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: Host missing no snmp response, mrtg error

Post by absarcompass »

Thanks Box293,
I will add that plugin but here I have faced an issue in using ssax wizard. When i uploaded the plugin network devices which have bandwidth and port status sevice from the wizard started alarming Warning for the administratively down ports. which was not previously the case.
I have reverted the changes instead of looking into it further due to the live environment.
can any one guide me about what could be the issue here

Thanks
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Host missing no snmp response, mrtg error

Post by Box293 »

I'll get @ssax to follow up with your problem.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Host missing no snmp response, mrtg error

Post by ssax »

The only thing that I changed was adding this to the cfgmaker options:

Code: Select all

$args[] = '--if-filter=\'$default && $if_type!=23 && $if_type!=24 && $if_type!=135\'';
Can you show me a screenshot and/or the nagios.log entries for the ones you are talking about and send me the /etc/mrtg/conf.d/DEVICE.cfg files so that I can review them?
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: Host missing no snmp response, mrtg error

Post by absarcompass »

Hi ssax,
Thanks for your help
I have added this to the current cfgmaker

Code: Select all

'$default && $if_type!=23 && $if_type!=24 && $if_type!=135\'
without adding and using the new switch wizard.
where else i have to make changes to manually run the cfgmaker commands for a particular device and how to run that to be exact :?


P.S I will have to test the new switch plugin in a bit relaxed time due to live environment
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Host missing no snmp response, mrtg error

Post by ssax »

To be honest, it gets a bit more complicated in the later versions of the switch wizard because it creates individual /etc/mrtg/conf.d files for each port.

The old configs (that include every port in one file) would show you the command that was run at the very top of the /etc/mrtg/conf.d/DEVICENAME.cfg file.

Are you using SNMP v1, v2, or v3? The cfgmaker commands would be different for each.


Thank you
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: Host missing no snmp response, mrtg error

Post by absarcompass »

Thanks ssax,
we are using version 2.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Host missing no snmp response, mrtg error

Post by ssax »

This would be the command:

Code: Select all

/usr/bin/cfgmaker --show-op-down --noreversedns --if-filter='$default && $if_type!=23 && $if_type!=24 && $if_type!=135' --zero-speed 100000000 COMMUNITY@HOST:161::::2 > /etc/mrtg/conf.d/DEVICENAME.cfg
/usr/bin/cfgmaker --show-op-down --noreversedns --if-filter='$default && $if_type!=23 && $if_type!=24 && $if_type!=135' --zero-speed 100000000 COMMUNITY@HOST:161::::2 > /etc/mrtg/conf.d/HOSTNAME.cfg

NOTE: The HOSTNAMEpart needs to match exactly what you have defined on your host in the Address field.

Take a XI backup first just in case:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Then you would delete the current configs that you have for that device in /etc/mrtg/conf.d and run the new command.
Locked