Upgrade to 5.8.3 results in mrtg issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rolandkon
Posts: 7
Joined: Mon Jan 21, 2019 6:02 am

Upgrade to 5.8.3 results in mrtg issues

Post by rolandkon »

I upgraded to 5.8.3 this week and after everything going red things went normal after an hour or so.

After that I added a router via the whizard and everything looked normal.
When after an hour the rrd files were still missing I had a look and decided to throw everything out and do it again.
Same result. No rrd Files were not created however long I waited.

So I had a look at mrtg.
I ran :

Code: Select all

[root@nagios /]# LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
ERROR: Line 199 (Target[178.188.103.138_5]: 5:[email protected]:161::::2) in CFG file (/etc/mrtg/conf.d/178.188.103.138.cfg)
contains a duplicate definition for target[178.188.103.138_5].
First definition is on line 4
Had a look at the CFG file and yes there was a definition at line 199 and a another file 178.188.103.138_5.cfg with a duplicate definition.
OK, I decided to rename the file to *.cfg2 and ran the check again and all hell broke loose.
It started with:
2021-04-09 09:10:26: WARNING: Expected a number but got 'noSuchInstance'
Then pages of
SNMPGET Problem for
finishing with
2021-04-09 09:11:17: ERROR: Target[10.27.27.1_47][_OUT_] ' $target->[438]{$mode} ' did not eval into defined data

So I thought I broke something and renamed the file back to cfg and got the same error as before.

Then I looked at the web interface and the rrd files were not missing any more!

I'm scratching my head. Can anyone bring some light into this?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Upgrade to 5.8.3 results in mrtg issues

Post by ssax »

That first error was a show stopper which causes MRTG to stop processing, hence no RRDs. The second error you are listing is not a show stopper and MRTG will continue on and should create the RRDs.

Please PM me the broken .cfg file from /etc/mrtg/conf.d if you still have it.
rolandkon
Posts: 7
Joined: Mon Jan 21, 2019 6:02 am

Re: Upgrade to 5.8.3 results in mrtg issues

Post by rolandkon »

Thanks for looking into this.

It's a relief to know that after all it's working.
Was what I did OK after all?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Upgrade to 5.8.3 results in mrtg issues

Post by ssax »

I can't tell from the configs what was actually broken, did you have a duplicate file or was there a duplicate section in the original config you changed? If it was a duplicate file, did you add the same switch two different times with different names? (like once with IP and once with DNS name?)
rolandkon
Posts: 7
Joined: Mon Jan 21, 2019 6:02 am

Re: Upgrade to 5.8.3 results in mrtg issues

Post by rolandkon »

OK, that's the most plausible explaination. Sometimes the router or switch has some issue with the SNMP configuration and then I will try a few times. I usually then delete all the cfg files but it has happened before that I forgot.
Thanks! I'll leave it there.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Upgrade to 5.8.3 results in mrtg issues

Post by ssax »

If you see that again, let me know. I tried replicating it by adding the same switch with a different name and I was unable to replicate the duplication of the file.

Do you see any updates for the Network Switch / Router Wizard in Admin > Manage Config Wizards > Check for Updates? What version is listed next to yours?
Locked