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

Service change for router switch entry

Post by sharding »

so we do a lot of monitoring based on certain ports, port-channel's, vlans etc from routers and switches (we have around 500 of them)

so two pronged question - when an IP address changes for a stack, rather than remove all the service and hosts entries and run the router wizard, how can I change the IP of the stack and then add /remove port changes?

Second part this this (is related) I have a bunch of service for one switch stack and in this case all I want to do is change the port from 2/0/1 to 3/0/1 (please see screen shot), I cannot see how this is done from here, again the only thing I can think of is to remove them all and start over, seems a bit overkill to have to do that.
You do not have the required permissions to view the files attached to this post.
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

Re: Service change for router switch entry

Post by sharding »

ok I just run the router wizard where am I getting this error (see screen shot)
You do not have the required permissions to view the files attached to this post.
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 PM me a copy of your profile, you can download it from Admin > System Profile > Download Profile.

Additionally, you would need to re-run the switch/router wizard or edit the /etc/mrtg/conf.d/XXXXXX.cfg file manually if you want to change information.

You can always just remove the /etc/mrtg/conf.d/XXXXXXX.cfg file then re-run the switch/router wizard for it to be updated, it will also overwrite the services with the proper port numbers if they have changed (as long as the service description stays the same).

Once I get the profile I can review your MRTG setup, please follow this guide though to troubleshoot bandwidth graphs (make sure you've given it 15 minutes to start graphing as well):

https://support.nagios.com/kb/article/n ... hs-29.html

Make sure to post the full output of this command (run as root):

Code: Select all

time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

Re: Service change for router switch entry

Post by sharding »

the services were running since last month (likely last reboot)

the last cmd you referenced gave pages of

2019-04-02 14:48:02: WARNING: Expected a number but got 'noSuchInstance'
2019-04-02 14:48:02: WARNING: Expected a number but got 'noSuchInstance'
2019-04-02 14:48:02: WARNING: Expected a number but got 'noSuchInstance'
2019-04-02 14:48:02: WARNING: Expected a number but got 'noSuchInstance'
2019-04-02 14:48:02: WARNING: Expected a number but got 'noSuchInstance'
2019-04-02 14:48:02: WARNING: Expected a number but got 'noSuchInstance'
2019-04-02 14:48:02: WARNING: Expected a number but got 'noSuchInstance'
2019-04-02 14:48:02: WARNING: Expected a number but got 'noSuchInstance'
2019-04-02 14:48:02: WARNING: Expected a number but got 'noSuchInstance'
2019-04-02 14:48:02: WARNING: Expected a number but got 'noSuchInstance'
2019-04-02 14:48:02: WARNING: Expected a number but got 'noSuchInstance'
2019-04-02 14:48:02: WARNING: Expected a number but got 'noSuchInstance'
2019-04-02 14:48:02: WARNING: Expected a number but got 'noSuchInstance'
2019-04-02 14:48:02: WARNING: Expected a number but got 'noSuchInstance'
2019-04-02 14:48:02: WARNING: Expected a number but got 'noSuchInstance'
2019-04-02 14:48:02: WARNING: Expected a number but got 'noSuchInstance'
2019-04-02 14:48:02: WARNING: Expected a number but got 'noSuchInstance'
2019-04-02 14:48:02: WARNING: Expected a number but got 'noSuchInstance'
2019-04-02 14:48:02: WARNING: Expected a number but got 'noSuchInstance'
2019-04-02 14:48:02: WARNING: Expected a number but got 'noSuchInstance'


the more pages of this

019-04-02 14:49:09: ERROR: Target[10.240.1.1_779][_IN_] ' $target->[12876]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.240.1.1_779][_OUT_] ' $target->[12876]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.240.1.1_780][_IN_] ' $target->[12877]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.240.1.1_780][_OUT_] ' $target->[12877]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.240.1.1_781][_IN_] ' $target->[12878]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.240.1.1_781][_OUT_] ' $target->[12878]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.240.1.1_782][_IN_] ' $target->[12879]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.240.1.1_782][_OUT_] ' $target->[12879]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.240.1.1_783][_IN_] ' $target->[12880]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.240.1.1_783][_OUT_] ' $target->[12880]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.240.1.1_784][_IN_] ' $target->[12881]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.240.1.1_784][_OUT_] ' $target->[12881]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.240.1.1_785][_IN_] ' $target->[12882]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.240.1.1_785][_OUT_] ' $target->[12882]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.2.1.2_10][_IN_] ' $target->[13688]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.2.1.2_10][_OUT_] ' $target->[13688]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.2.1.2_11][_IN_] ' $target->[13689]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.2.1.2_11][_OUT_] ' $target->[13689]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.2.1.2_12][_IN_] ' $target->[13690]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.2.1.2_12][_OUT_] ' $target->[13690]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.2.1.2_13][_IN_] ' $target->[13691]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.2.1.2_13][_OUT_] ' $target->[13691]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.2.1.2_14][_IN_] ' $target->[13692]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.2.1.2_14][_OUT_] ' $target->[13692]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.2.1.2_15][_IN_] ' $target->[13693]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.2.1.2_15][_OUT_] ' $target->[13693]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.2.1.2_17][_IN_] ' $target->[13694]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.2.1.2_17][_OUT_] ' $target->[13694]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.2.1.2_18][_IN_] ' $target->[13695]{$mode} ' did not eval into defined data
2019-04-02 14:49:09: ERROR: Target[10.2.1.2_18][_OUT_] ' $target->[13695]{$mode} ' did not eval into defined data
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Service change for router switch entry

Post by ssax »

Mainly we want to see the time that the command took to run and the last few lines of the output so that we can see if it it's erroring or if it's running longer than 5 minutes, how long did the time say? (prepend the command with the time command)

Code: Select all

time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

Re: Service change for router switch entry

Post by sharding »

real 1m56.768s
user 1m15.723s
sys 0m5.788s
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

Re: Service change for router switch entry

Post by sharding »

have not heard from anyone since 9:30 AM this morning, this is a support issue I need worked on please
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 attach the associated config files for 10.240.1.1 from /etc/mrtg/conf.d so that we can review them.

If you look at the top of them it should show you the command that it's running like this:

Code: Select all

/usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed 100000000 [email protected]:161::::2
Run that command, does it work?

Does your SNMP community have special characters in it? If so, try this instead:

Code: Select all

/usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed 100000000 'community'@10.240.1.1:161::::2
Please send the command AND the full output so that I can review it.

Thank you.
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

Re: Service change for router switch entry

Post by sharding »

I will gather the info requested,

I also found this

https://support.nagios.com/kb/article/n ... g-512.html and followed it but did not change anything
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

Re: Service change for router switch entry

Post by sharding »

here the cfg files
You do not have the required permissions to view the files attached to this post.
Locked