Page 3 of 3

Re: Host missing no snmp response, mrtg error

Posted: Fri Jun 03, 2016 1:21 pm
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

Re: Host missing no snmp response, mrtg error

Posted: Tue Jun 07, 2016 7:14 pm
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

Re: Host missing no snmp response, mrtg error

Posted: Tue Jun 07, 2016 7:35 pm
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.

Re: Host missing no snmp response, mrtg error

Posted: Wed Jun 08, 2016 6:20 pm
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

Re: Host missing no snmp response, mrtg error

Posted: Wed Jun 08, 2016 6:48 pm
by Box293
I'll get @ssax to follow up with your problem.

Re: Host missing no snmp response, mrtg error

Posted: Thu Jun 09, 2016 9:21 am
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?

Re: Host missing no snmp response, mrtg error

Posted: Tue Jun 21, 2016 8:21 pm
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

Re: Host missing no snmp response, mrtg error

Posted: Wed Jun 22, 2016 1:24 pm
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

Re: Host missing no snmp response, mrtg error

Posted: Wed Jun 22, 2016 4:59 pm
by absarcompass
Thanks ssax,
we are using version 2.

Re: Host missing no snmp response, mrtg error

Posted: Thu Jun 23, 2016 12:53 pm
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.