Service change for router switch entry

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

Re: Service change for router switch entry

Post by sharding »

snmp output
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Service change for router switch entry

Post by ssax »

Please remove the ones with the _in the names from the /etc/mrtg/conf.d that you attached, wait 15 minutes, and then see if they are now graphing.

Should be:

Code: Select all

X.X.X.X.cfg
OLD way:

Code: Select all

X.X.X.X_PORTNUM.cfg
Having duplicates will cause issues.

Please post the output of this command once you've done that:

Code: Select all

ls -l /etc/mrtg/conf.d
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

Re: Service change for router switch entry

Post by sharding »

every single file in 0.140.100.2_32.rrd 10.170.100.11_116.rrd 10.180.100.9_665.rrd 10.40.1.1_165.rrd 10.95.1.1_778.rrd
10.140.100.2_33.rrd 10.170.100.11_117.rrd 10.180.100.9_666.rrd 10.40.1.1_166.rrd 10.95.1.1_779.rrd
10.140.100.2_34.rrd 10.170.100.11_118.rrd 10.180.100.9_667.rrd 10.40.1.1_167.rrd 10.95.1.1_77.rrd
10.140.100.2_35.rrd 10.170.100.11_119.rrd 10.180.100.9_668.rrd 10.40.1.1_168.rrd 10.95.1.1_780.rrd
10.140.100.2_36.rrd 10.170.100.1_111.rrd 10.180.100.9_669.rrd 10.40.1.1_169.rrd 10.95.1.1_781.rrd
10.140.100.2_37.rrd 10.170.100.11_11.rrd 10.180.100.9_66.rrd 10.40.1.1_16.rrd 10.95.1.1_782.rrd
10.140.100.2_38.rrd 10.170.100.11_120.rrd 10.180.100.9_670.rrd 10.40.1.1_170.rrd 10.95.1.1_783.rrd
10.140.100.2_39.rrd 10.170.100.11_121.rrd 10.180.100.9_671.rrd 10.40.1.1_171.rrd 10.95.1.1_78.rrd
10.140.100.2_3.rrd 10.170.100.11_122.rrd 10.180.100.9_672.rrd 10.40.1.1_172.rrd 10.95.1.1_79.rrd
10.140.100.2_40.rrd 10.170.100.11_123.rrd 10.180.100.9_673.rrd 10.40.1.1_173.rrd 10.95.1.1_7.rrd
10.140.100.2_41.rrd 10.170.100.11_124.rrd 10.180.100.9_674.rrd 10.40.1.1_174.rrd 10.95.1.1_80.rrd
10.140.100.2_42.rrd 10.170.100.11_125.rrd 10.180.100.9_675.rrd 10.40.1.1_175.rrd 10.95.1.1_81.rrd
10.140.100.2_43.rrd 10.170.100.11_126.rrd 10.180.100.9_676.rrd 10.40.1.1_176.rrd 10.95.1.1_82.rrd
10.140.100.2_44.rrd 10.170.100.11_127.rrd 10.180.100.9_677.rrd 10.40.1.1_177.rrd 10.95.1.1_83.rrd
10.140.100.2_45.rrd 10.170.100.11_128.rrd 10.180.100.9_678.rrd 10.40.1.1_178.rrd 10.95.1.1_84.rrd
10.140.100.2_46.rrd 10.170.100.11_129.rrd 10.180.100.9_679.rrd 10.40.1.1_179.rrd 10.95.1.1_85.rrd
10.140.100.2_47.rrd 10.170.100.1_112.rrd 10.180.100.9_67.rrd 10.40.1.1_17.rrd 10.95.1.1_86.rrd
10.140.100.2_48.rrd 10.170.100.11_12.rrd 10.180.100.9_680.rrd 10.40.1.1_180.rrd 10.95.1.1_87.rrd
10.140.100.2_49.rrd 10.170.100.11_130.rrd 10.180.100.9_681.rrd 10.40.1.1_181.rrd 10.95.1.1_88.rrd
10.140.100.2_4.rrd 10.170.100.11_131.rrd 10.180.100.9_682.rrd 10.40.1.1_182.rrd 10.95.1.1_89.rrd
10.140.100.2_50.rrd 10.170.100.11_132.rrd 10.180.100.9_683.rrd 10.40.1.1_183.rrd 10.95.1.1_8.rrd
10.140.100.2_51.rrd 10.170.100.11_133.rrd 10.180.100.9_684.rrd 10.40.1.1_184.rrd 10.95.1.1_90.rrd
10.140.100.2_52.rrd 10.170.100.11_134.rrd 10.180.100.9_685.rrd 10.40.1.1_185.rrd 10.95.1.1_91.rrd
10.140.100.2_55.rrd 10.170.100.11_135.rrd 10.180.100.9_686.rrd 10.40.1.1_186.rrd 10.95.1.1_92.rrd
10.140.100.2_56.rrd 10.170.100.11_136.rrd 10.180.100.9_687.rrd 10.40.1.1_187.rrd 10.95.1.1_93.rrd
10.140.100.2_57.rrd 10.170.100.11_137.rrd 10.180.100.9_688.rrd 10.40.1.1_188.rrd 10.95.1.1_94.rrd
10.140.100.2_58.rrd 10.170.100.11_138.rrd 10.180.100.9_689.rrd 10.40.1.1_189.rrd 10.95.1.1_95.rrd
10.140.100.2_59.rrd 10.170.100.11_139.rrd 10.180.100.9_68.rrd 10.40.1.1_18.rrd 10.95.1.1_96.rrd
10.140.100.2_5.rrd 10.170.100.1_113.rrd 10.180.100.9_690.rrd 10.40.1.1_190.rrd 10.95.1.1_97.rrd
10.140.100.2_60.rrd 10.170.100.11_13.rrd 10.180.100.9_691.rrd 10.40.1.1_191.rrd 10.95.1.1_98.rrd
10.140.100.2_61.rrd 10.170.100.11_140.rrd 10.180.100.9_692.rrd 10.40.1.1_192.rrd 10.95.1.1_99.rrd
10.140.100.2_62.rrd 10.170.100.11_141.rrd 10.180.100.9_693.rrd 10.40.1.1_193.rrd 10.95.1.1_9.rrd
10.140.100.2_63.rrd 10.170.100.11_142.rrd 10.180.100.9_694.rrd 10.40.1.1_194.rrd mrtgdata.tar.gz
10.140.100.2_649.rrd 10.170.100.11_143.rrd 10.180.100.9_695.rrd 10.40.1.1_195.rrd mrtg.lock
10.140.100.2_64.rrd 10.170.100.11_144.rrd 10.180.100.9_696.rrd 10.40.1.1_196.rrd mrtg.lock_14802
10.140.100.2_650.rrd 10.170.100.11_145.rrd 10.180.100.9_697.rrd 10.40.1.1_197.rrd mrtg.ok
10.140.100.2_651.rrd 10.170.100.11_146.rrd 10.180.100.9_698.rrd 10.40.1.1_198.rrd
10.140.100.2_652.rrd 10.170.100.11_147.rrd 10.180.100.9_699.rrd 10.40.1.1_199.rrd
10.140.100.2_653.rrd 10.170.100.11_148.rrd 10.180.100.9_69.rrd 10.40.1.1_19.rrd
[root@nagiosxi2 mrtg]#
[root@nagiosxi2 mrtg]# pwd
/var/lib/mrtg
[root@nagiosxi2 mrtg]#
has an underscore

the error is in for example /var/lib/mrtg/10.240.1.1_947.rrd does not exist.

the folder you mentioned is not where the error is and does not contain any files with an underscore
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Service change for router switch entry

Post by ssax »

I understand what your issue is, you're just going to have to trust that I know what I'm doing, please read through this if you have questions on the architecture of it:

Code: Select all

https://support.nagios.com/kb/article/nagios-xi-switch-and-router-wizard-architecture-62.html
Please send me the output of these commands:

Code: Select all

ls -ld /var
ls -ld /var/lib
ls -ld /var/lib/mrtg
cat /etc/cron.d/mrtg
service crond status
tail /var/log/cron
Actually, I think I found what the issue is:

See the error: /var/lib/mrtg/10.240.1.1_947 Doesn't Exist

The 947 is not even listed in the MRTG config file:

Code: Select all

grep 947 /etc/mrtg/conf.d/10.240.1.1/10.240.1.1*
Try running this command:

Code: Select all

rm -rf /etc/mrtg/conf.d/10.24.1.1*
Then re-run the Switch/Router wizard against 10.24.1.1 again, wait 15 minutes, see if they start showing up.

If they are still not showing up, send me the output of those commands from the top and then create a ticket for this and include a link back to this forum thread so we can get a remote session setup to get this resolved:

Code: Select all

https://support.nagios.com/tickets/
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

Re: Service change for router switch entry

Post by sharding »

I have done the first two

[root@nagiosxi2 ~]# grep 947 /etc/mrtg/conf.d/10.240.1.1/10.240.1.1*
grep: /etc/mrtg/conf.d/10.240.1.1/10.240.1.1*: No such file or directory
[root@nagiosxi2 ~]# rm -rf /etc/mrtg/conf.d/10.24.1.1*
[root@nagiosxi2 ~]#


I will re-run the wizard, not sure that the point is getting hit here, the wizard was run with no config in the first place, which is where we came into this.

It's not your ability to work the issue, it's the time to resolve this, I have a backlog of wizards to run but I am reluctant to due to this one not working from the beginning.

I was only getting one response on here a day which from a user perspective is annoying, If I can create a ticket then why didn't anyone tell me, I thought since we were stopped from e-mailing support to create tickets this forum rubbish was our only option, WE pay for support, and generally take care of our infrastructure very well so when we need vendor assistance it's for a good reason.

Please note that this is not aimed at your personally but a broken system for a paying customer.

I'll let you know what happens after the wizard is re-run for the second time, I still need to know what happened otherwise we'll be back here again next time I have to run it.
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

Re: Service change for router switch entry

Post by sharding »

errors still there , I rebooted as well,

I'll create a ticket,
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Service change for router switch entry

Post by tgriep »

Moving support to the opened ticket. Closing and locking the post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked