network switch

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
hanya.radwan
Posts: 194
Joined: Tue Feb 25, 2014 6:12 am
Location: palestine

Re: network switch

Post by hanya.radwan »

i tried community JawwLsnmp and without dash, but the problem still.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: network switch

Post by abrist »

Did you try changing the community string on the device and the check, or just the check itself?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
abdelhafeth.mzahem
Posts: 38
Joined: Thu Jun 04, 2015 1:22 am

Re: network switch

Post by abdelhafeth.mzahem »

Hi

It seems the problem is not in the community name as We change the SNMP configurations on both Nagios and device, but still have the same error.

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

Re: network switch

Post by ssax »

So if you run the command below it errors out as well?

- Make sure that your community is spelled properly and check capitalization on both devices and in the command below.

Code: Select all

/usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed '100000000' '[email protected]:::::1'
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: network switch

Post by ssax »

Or with:

Code: Select all

/usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed '100000000' '[email protected]:::::2'
abdelhafeth.mzahem
Posts: 38
Joined: Thu Jun 04, 2015 1:22 am

Re: network switch

Post by abdelhafeth.mzahem »

Hi,
thanks for reply.



when we use the command :==> /usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed '100000000' '[email protected]:::::1'

snmp error occurred, also with community "jawwalsnmp"

but when use the command :==> /usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed '100000000' '[email protected]:::::1'


every thing seems ok and work as shown

/usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed 100000000 [email protected]:::::2


### Global Config Options

# for UNIX
# WorkDir: /home/http/mrtg

# or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

EnableIPv6: no

######################################################################
# System: NSFW-01
# Description: NetScreen-ISG 1000 version 6.3.0r10.0 (SN: 0133082006000261, Firewall+VPN)
# Contact: Hulul
# Location: JW-Edge-FW-HQ-DC
######################################################################


### Interface 1 >> Descr: 'mgt' | Name: 'mgt' | Ip: '192.168.1.1' | Eth: '00-10-db-c2-51-80' ###

Target[10.100.5.29_1]: 1:[email protected]:::::2
SetEnv[10.100.5.29_1]: MRTG_INT_IP="192.168.1.1" MRTG_INT_DESCR="mgt"
MaxBytes[10.100.5.29_1]: 12500000
Title[10.100.5.29_1]: Traffic Analysis for 1 -- NSFW-01
PageTop[10.100.5.29_1]: <h1>Traffic Analysis for 1 -- NSFW-01</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>NSFW-01 in JW-Edge-FW-HQ-DC</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>Hulul</td>
..............................................
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: network switch

Post by lmiltchev »

Let's try to start "clean". Remove all traces of previous "10.100.5.29" configuration from the "/etc/mrtg/conf.d" directory and old mrtgscan files from "/usr/local/nagiosxi/tmp/ folder as described in our documentation here:

https://assets.nagios.com/downloads/nag ... Router.pdf

Rerun the switch wizard against the "10.100.5.29" device (use SNMPV2c) to see if this is going to fix your issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
abdelhafeth.mzahem
Posts: 38
Joined: Thu Jun 04, 2015 1:22 am

Re: network switch

Post by abdelhafeth.mzahem »

Hi

thanks for reply, I followed the document procedure to clean, and run the discovery again but also failed.


when we use the command :/usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed '100000000' '[email protected]:::::1'
Error occured and no snmp response


but when change the flag at the end to 2 it works fine

/usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed '100000000' '[email protected]:::::2'
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: network switch

Post by ssax »

Follow this process:

Go to the wizards and click Network Switch / Router Monitoring Wizard.

Click on the middle tab that says SNMPv2c.

Type in your IP address.

Type in the SNMP Community (don't use the one with the dash in it).

Set your Monitoring Options and your Value Defaults.

Click Next.

That should use v2c, the screenshot you posted looks like you were on the SNMPv1 tab when you clicked next.

If it still doesn't work, then go to Admin > System Extensions > Manage Config Wizards and click the Check for Updates button on the top right.
Scroll down to Network Switch / Router and click download.
Once it's downloaded, scroll back up to the top and browse for the downloaded file and click Upload Wizard.

Now try the process again.
abdelhafeth.mzahem
Posts: 38
Joined: Thu Jun 04, 2015 1:22 am

Re: network switch

Post by abdelhafeth.mzahem »

Thank you very much

It is working fine now :D :D :D :D :D
Locked