|
|
| Author |
Message |
abhijitdas
Joined: 15 Dec 2008 Posts: 1
|
Posted: Mon Dec 15, 2008 8:20 am Post subject: Install and configure the Net-SNMP agent for Windows |
|
|
hi, fmangeant
I have gone through the all the question and answer of the "Install and configure the Net-SNMP agent for Windows". Now I have done all the steps correctly according to your answers. I am giving the points as
1. I installed net-snmp-5.4.2.1-1.win32.exe and followed your steps.
2. I am getting all the relevent o/p of the command as you mentioned.
3. In the log file ,C:\usr\log\snmpd.log , I am getting only
NET-SNMP version 5.4.2.1,
Is it correct?
4. I did not do anything about snmptrap.
Now, I have seen that sometime stop and start od snmp are not working correctly.
My requirement is , to get the CPU load. I did
1. install the net-snmp
2. get the jar of snmp " snmp-1.3.jar" ,
3. JRobinLite-1.5.9.1.tar.gz - for getting the CPU load.
Now, I do i know that my net-snmp is working correctly. Is the log info. is correct.
The java file of JRobin shows exception ....
The error is in
public static final String SNMP_CPU_LOAD_OID = "1.3.6.1.4.1.2021.10.1.3.1";
not able to retrive.
Thanks
Abhijit |
|
| Back to top |
|
 |
Torocatala
Joined: 04 Jun 2009 Posts: 1
|
Posted: Thu Jun 04, 2009 5:31 am Post subject: Re: Unknown Token |
|
|
| Quote: | | Brashquido wrote: | | For those getting unknown token warnings when running SNMP queries, make sure you have set an environment variable called SNMPCONF-PATH to the path of your Net-SNMP snmp.conf file |
Yep, i have that "unknown token" problem monitoring a windows client, but i don't understand your message.
This is the data on my C:\usr\etc\snmp\snmp.conf
mibdirs C:/usr/share/snmp/mibs
persistentDir C:/usr/snmp/persist
tempFilePattern C:/usr/temp/snmpdXXXXXX
rocommunity public
And this is what happen when i do the snmpwalk:
C:\Documents and Settings\Admin>snmpwalk.exe -v 1 -c public localhost sysdesc
C:/usr/etc/snmp/snmp.conf: line 4: Warning: Unknown token: rocommunity.
Timeout: No Response from localhost
żAny idea? |
Never mind, I was editing snmp.conf not snmpd.conf X_X |
|
| Back to top |
|
 |
John Gilik
Joined: 17 Apr 2008 Posts: 2
|
Posted: Thu Jul 02, 2009 6:02 pm Post subject: Re: Executed. |
|
|
| elayaraja.s wrote: | C:\net-snmp\bin>snmpwalk.exe -v 1 -c public localhost versiontag
Output: UCD-SNMP-MIB::versionTag.0 = STRING: 5.4.1
C:\net-snmp\bin>snmpwalk.exe -v 1 -c public localhost sysdesc
Output: No output.....Its blank.. |
I had this same issue, and resolved it by installing Cacti as a service manually through the command line. Instead of running "Register Agent Service" from the Start Menu, I ran the following in the command line after installing Net-SNMP: "snmpd -register -Lf c:/snmpderr.log". Change c:/snmpderr.log to where you'd like it to log errors.
EDIT: This appears to just re-enable Net-SNMP's built in modules. I'm now toying with explicitly proxying requests.
EDIT 2: I used the above directions to install as a service, and then did the following:
Installing Net-SNMP as a proxy:
1. Install Microsoft SNMP Agent as normal
2. Run "notepad c:\windows\system32\drivers\etc\services", find snmp, replace 161 with 1161
3. Start or restart Microsoft SNMP Agent
4. Edit your snmpd.conf--add community strings and a line saying "proxy -v 1 -c <COMMUNITY_STRING> localhost:1161 .1.3"
5. Start or restart Net-SNMP service
If you get timeouts while trying to do a walk, make sure both SNMP services are running. Works perfectly for me so far. |
|
| Back to top |
|
 |
achuta bodepu
Joined: 17 Sep 2009 Posts: 23
|
Posted: Thu Mar 04, 2010 12:05 am Post subject: |
|
|
| I would like to know how to create snmptrapd.conf file for snmp traps. My NET-SNMP version is 5.5. Net-SNMP trap handler is running as services.Please help me.!!!!!!!!!!!!!!! |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|