Page 2 of 3

Re: network switch

Posted: Mon Jun 08, 2015 8:26 am
by hanya.radwan
i tried community JawwLsnmp and without dash, but the problem still.

Re: network switch

Posted: Mon Jun 08, 2015 10:53 am
by abrist
Did you try changing the community string on the device and the check, or just the check itself?

Re: network switch

Posted: Tue Jun 09, 2015 4:57 am
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

Re: network switch

Posted: Tue Jun 09, 2015 12:43 pm
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'

Re: network switch

Posted: Tue Jun 09, 2015 12:44 pm
by ssax
Or with:

Code: Select all

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

Re: network switch

Posted: Wed Jun 10, 2015 2:46 am
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>
..............................................

Re: network switch

Posted: Wed Jun 10, 2015 9:15 am
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.

Re: network switch

Posted: Thu Jun 11, 2015 3:48 am
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'

Re: network switch

Posted: Thu Jun 11, 2015 10:07 am
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.

Re: network switch

Posted: Thu Jun 11, 2015 10:56 pm
by abdelhafeth.mzahem
Thank you very much

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