Problems with SNMP

akteccomputers

01-11-2003 17:16:09

This is the output of lastrun.log.

creating Lockfile.
Initializing SNMP library.
Initializing RRDTOOL pipe.
[Dev 0005] Starting device thread.
[Dev 0005] MySQL connection established.
[Dev 0005] Servera / 10.1.1.250 / SNMPv1
[Dev 0006] Starting device thread.
[Dev 0006] MySQL connection established.
[Dev 0006] SambaServer / 10.1.1.224 / SNMPv1
[Dev 0007] Starting device thread.
[Dev 0007] MySQL connection established.
[Dev 0007] CDWserver / 10.1.1.221 / SNMPv1
[PASSIVE] Last 0, Now 3
[Dev 0006] SNMP Uptime is 0
[Dev 0006] Device is SNMP-dead. Avoiding SNMP tests.
[Dev 0006] [Sub 0006] Starting Subdevice.
[Dev 0006] [Sub 0006] [Mon 0020] Starting Monitor.
[Dev 0006] [Sub 0006] [Mon 0020] Avoided.
[Dev 0006] [Sub 0006] [Mon 0020] Value U
[Dev 0006] [Sub 0006] [Mon 0021] Starting Monitor.
[Dev 0006] [Sub 0006] [Mon 0021] Avoided.
[Dev 0006] [Sub 0006] [Mon 0021] Value U
[Dev 0006] [Sub 0006] [Mon 0022] Starting Monitor.
[Dev 0006] [Sub 0006] [Mon 0022] Avoided.
[Dev 0006] [Sub 0006] [Mon 0022] Value U
[Dev 0006] [Sub 0006] [Mon 0023] Starting Monitor.
[Dev 0006] [Sub 0006] [Mon 0023] Avoided.
[Dev 0006] [Sub 0006] [Mon 0023] Value U
[Dev 0006] [Sub 0006] [Mon 0024] Starting Monitor.
[Dev 0006] [Sub 0006] [Mon 0024] Avoided.
[Dev 0006] [Sub 0006] [Mon 0024] Value U
[Dev 0006] [Sub 0006] [Mon 0025] Starting Monitor.
[Dev 0006] [Sub 0006] [Mon 0025] Avoided.
[Dev 0006] [Sub 0006] [Mon 0025] Value U
Thread Ended.
[PASSIVE] Last 1, Now 0
Closed MySQL connection.
Runtime 8
Closed RRDTOOL pipe.
Cleaned up SNMP.
~


and a lot more of that. The graphs are showing up but no data is getting to them. Anyone have any ideas?

ALso, are you supposed to install a special client on the systems that are to be sending reports?
If it matters, Im using a fresh install of RH9 with all updated versions of all major packages in use. I did compile the source for netmrg however. DIdnt notice the rpm form was out.
Also, Im on a fairly large network with about 20 winxp based systems and 5 linux based, does this program monitor windows based systems?

balleman

01-11-2003 21:52:12

NetMRG checks to see if a device is SNMP-alive by querying for its SNMP agent uptime. If that request fails, or if the uptime is '0', then the all SNMP queries on the device are skipped. You can use snmpwalk to verify the result of the query
[code1f7283e02c2][balleman@pine balleman]$ snmpwalk -v1 -cpublic localhost system.sysUpTime.0
SNMPv2-MIB::sysUpTime.0 = Timeticks: (3065461) 8:30:54.61
[/code1f7283e02c2]
If you get a result like this, than something else might be wrong (like NetMRG's parsing of the uptime). If you get an SNMP error of some type, you'll want to debug your SNMP setup.

No client is needed on the polled systems; everything is gathered centrally.

NetMRG is capable of monitoring Windows-based systems, however, many of the default template graphs in NetMRG are for unix-like systems.

We'd like to include more templates for Windows systems, if anyone has any to contribute.

akteccomputers

03-11-2003 11:11:53

Hum, I tried doing the snmp walk command from above and it says , Timeout no response from localhost. It does the same thing with all other systems. I removed the snmp stuff and installed net-snmp-5.0.9-1. I am gettng the same thing with it. I have never used snmp so am not sure where to go from here.

silfreed

03-11-2003 11:56:52

If you're monitoring windows boxes, the SNMP service isn't installed by default. You'll have to go to add/remove programs, then under windows services (or programs, or something; I don't use windows that often), you can install it. After that, find the SNMP service in the Services control panel and configure it. That should get you started.
Like Brady said, you'll probably have to use custom script so monitor windows boxen. I belive there's a script for monitoring CPU, and if I remember correctly, you can monitor the interfaces by making sure 'recache after reboot' is checked.

-Doug

akteccomputers

03-11-2003 14:21:20

eh , but my linux boxes arent communicating either?

balleman

03-11-2003 18:03:15

Well, you may want to verify that your snmpd.conf is reasonable and that your snmp daemon is running.

We helped someone fix problems in their snmpd.conf in this topic.

Please let us know if you need further assistance.

sjeanjean

04-11-2003 11:18:07

If you are under RedHat 9, the snmpd daemon block on a futex system call when you walk disks oid (HOST-RESOURCE-MIB or DskTable).
A workaround is to put the ligne [code1b457004cd2]export LD_ASSUME_KERNEL=2.4.1[/code1b457004cd2] at the begining of /etc/init.d/snmpd and then restart the agent.

akteccomputers

04-11-2003 12:14:17

eh sorry for being the newb. I just figured out that snmpd is the deamon and that it was located in /etc/init.d not /etc/rc.d/init.d. I tried running the snmpconf utility and genertated the files. I placed them where the script said to place them. But, when I run snmpd start nothing ever happens. Are there any snmp guides you can point me to?

silfreed

04-11-2003 12:46:36

Hmm.. I never used that tool before.. I always just 'vi /etc/snmp/snmpd.conf' ;)

Like Brady was saying, I would just edit your snmpd.conf file; usually you need to do something like in this post
http//lists.netmrg.net/viewtopic.php?p=130#130

-Doug

sjeanjean

05-11-2003 05:10:54

[quote4f1be506c6="akteccomputers"]eh sorry for being the newb. I just figured out that snmpd is the deamon and that it was located in /etc/init.d not /etc/rc.d/init.d. I tried running the snmpconf utility and genertated the files. I placed them where the script said to place them. But, when I run snmpd start nothing ever happens. Are there any snmp guides you can point me to?[/quote4f1be506c6]

On RedHat9 /etc/init.d/snmpd is the startup script, /etc/snmp/snmpd.conf is the config script and /usr/sbin/snmpd is the binary.
The snmpconf tool is used to modify the config script.
To start/stop the agent you must use the startup script.

To avoid the futex bug you can update the binary or start the binary with LD_ASSUME_KERNEL set. The easiest way is to set the variable in the startup script.

akteccomputers

05-11-2003 12:25:41

snmp is all screwy I guess. It wont start and gives no messages. Im probably going to wipe and reload and try again. Im taking up company time though so prob wont be till next week. TY for all your help.

ckcoke

26-11-2003 20:16:59

Not trying to insult anyone .... but you did edit the snmp community string right ? .... if not try public instead of SNMPv1 ....
just a thought .... oops