Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Fri Apr 28, 2017 10:43 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Install and configure the Net-SNMP agent for Windows
PostPosted: Mon Dec 15, 2008 8:20 am 
Offline

Joined: Mon Dec 15, 2008 7:58 am
Posts: 1
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. :roll: :roll:

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


Top
 Profile  
 
 Post subject: Re: Unknown Token
PostPosted: Thu Jun 04, 2009 5:31 am 
Offline

Joined: Thu Jun 04, 2009 5:24 am
Posts: 1
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


Top
 Profile  
 
 Post subject: Re: Executed.
PostPosted: Thu Jul 02, 2009 6:02 pm 
Offline

Joined: Thu Apr 17, 2008 2:17 pm
Posts: 2
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 04, 2010 12:05 am 
Offline

Joined: Thu Sep 17, 2009 5:36 am
Posts: 37
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.!!!!!!!!!!!!!!!


Top
 Profile  
 
 Post subject: Re: [HOWTO] Install and configure the Net-SNMP agent for Win
PostPosted: Tue May 31, 2011 2:27 am 
Offline

Joined: Mon May 30, 2011 7:06 am
Posts: 1
Hi,

Firstly, thank you for the tutorial.


Then i have a little problem, and i hope than you will able to help me.

So i have installed Net-SNMP on windows with your tutorial. All feature work except the "proc" directive. I have used this directive on Linux and it's very useful to look for specific process that's why i ask if they are an issue use this directive on windows ?

I have searched on google for long (long long... :cry: ) time without issue...However, i have read that it's was probably not implemented on windows. Someone have an idea of issue to have the same features (trap on stop or too many process, get the state of one type of process...) without HOST-RESSOURCE-MIB.

Thank you :)

(Sorry for my bad english, i hope than my explication is understandable).


Top
 Profile  
 
 Post subject: Re: [HOWTO] Install and configure the Net-SNMP agent for Win
PostPosted: Tue Sep 27, 2011 2:47 am 
Offline

Joined: Thu Sep 08, 2011 4:18 am
Posts: 4
Have found more detailed How-To-Install SNMP:
www.manageengine.com/products/applications_manager/help/appendix/snmp-agent-discovery.html
i personally combined this one www.netadmintools.com/art487.html with yours. Thanks!


Top
 Profile  
 
 Post subject: Re: [HOWTO] Install and configure the Net-SNMP agent for Win
PostPosted: Tue Apr 17, 2012 1:44 pm 
Offline

Joined: Wed Jan 25, 2012 11:04 am
Posts: 7
I´m having some problem with SNMP v3, I followed the HOW TO and the 2 link above.
I created a user at snmpd.conf too and still getting this error.

Encryption support not enabled.
snmpwalk: USM encryption error

my net-snmp was installed with Cacti instalation for windows:
If I check Log i get only:
NET-SNMP version 5.6.1.1

Any tips to help how to make SNMP v3 on windows 2k3?
I need to make this work to try to make a template to Mcafee IPS.

Thanks.

_________________
"If I have seen further it is by standing on the shoulders of Giants." Isaac Newton


Top
 Profile  
 
 Post subject: Re: [HOWTO] Install and configure the Net-SNMP agent for Win
PostPosted: Thu Jan 24, 2013 3:07 pm 
Offline

Joined: Fri Jan 11, 2013 4:02 am
Posts: 10
Thanks for this HOWTO, very interesting !


Top
 Profile  
 
 Post subject: Re: [HOWTO] Install and configure the Net-SNMP agent for Win
PostPosted: Wed Jan 15, 2014 3:25 pm 
Offline

Joined: Mon Jan 13, 2014 1:20 pm
Posts: 8
Hi, im having problems with these.

I ran the net-snmp installer and followed all the steps, then i've tried to verify that Net-SNMP was installed correctly running the following from a command prompt:

snmptranslate -IR -Td IF-MIB::linkDown

And what i can see is these

Does someone know what can i do? help!


Attachments:
File comment: Does someone know what is happening?
16.png
16.png [ 20.22 KiB | Viewed 12594 times ]
Top
 Profile  
 
 Post subject: Re: [HOWTO] Install and configure the Net-SNMP agent for Win
PostPosted: Thu Mar 05, 2015 11:47 am 
Offline

Joined: Thu Mar 05, 2015 11:43 am
Posts: 1
When SNMP daemon starts, any error message is logged in C:\usr\log.

In my case, I resolved timeout problem by
1) Creating snmpd.conf file using snmpconf -g basic_setup
2) moving the snmpd.conf file from C:\usr\share\snmp to c:\usr\etc\snmp


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group