Win32 - Monitor running processes

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
CactiPadawan
Posts: 23
Joined: Mon Jun 06, 2005 11:15 am

Post by CactiPadawan »

bump
[My config :
Windows XP Service Pack 2
ActivePerl-5.8.6.811-MSWin32-x86-122208
cacti-0.8.6d
mysql-4.1.12-win32
php-5.0.4-Win32
rrdtool-cygwin-1.2.9
net-snmp-5.2.1
apache_2.0.54-win32-x86-no_ssl]
Pelin
Posts: 3
Joined: Wed Apr 13, 2005 12:40 am
Location: Sweden

Post by Pelin »

CactiPadawan wrote:My problem is the following :

+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.25.4.2.1.1'
+ No SNMP data returned

It seems i havent the right mib ... how to fix that ?
I'm not an expert, but I don't think finding the mib will help you with this.
The mib will help you translate the textual name to numbers.

Above it seems like you already have the numbers but your SNMP agent do not support the data that you are requesting...
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Are you using the Microsoft or Net-SNMP SNMP agent on windows?

I can sucessfully walk the OID the script uses on a WinXP or Win2K3 host with net-snmp 5.2.1.
Can you sucessfully get other OIDs off the host?
Are other SNMP scripts in cacti working on that host?
CactiPadawan
Posts: 23
Joined: Mon Jun 06, 2005 11:15 am

Post by CactiPadawan »

Hi,

I am using Net SNMP agent on Windows XP SP2


I can't sucessfully walk the OID the script uses on a WinXP or Win2K3 host with net-snmp 5.2.1.

As i said befor :

"From what i can read here : http://www.net-snmp.org/docs/README.agent-mibs.html

UCD-SNMP-MIB and HOST-RESSOURCES-MIB

(the mibs you are using with your scripts)

are not working for Win32 based Platforms . . ."

I can succesfully get OIDs from that host :

- OIDs from SNMPv2-MIB, IF-MIB, RFC1213,IP-MIB,TCP-MIB,UDP-MIB...

But not any from HOST-RESSOURCE MIB or UCD-SNMP-MIB ...
[My config :
Windows XP Service Pack 2
ActivePerl-5.8.6.811-MSWin32-x86-122208
cacti-0.8.6d
mysql-4.1.12-win32
php-5.0.4-Win32
rrdtool-cygwin-1.2.9
net-snmp-5.2.1
apache_2.0.54-win32-x86-no_ssl]
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

This script was written around the Microsoft SNMP Agent. Install that and it will work fine.

As you've already pointed out, the net-snmp agent does not work with the OID my script uses.
CactiPadawan
Posts: 23
Joined: Mon Jun 06, 2005 11:15 am

Post by CactiPadawan »

I have a little problem with the Windows Agent, after i install it, i go in the service management window and then i go in the properties of the snmp service but there i cant define any community ... buttons like "add community" are in grey and i cant use them ....

Anyone already had this problem ? or maybe i missed something ...

Thank you anyway.
[My config :
Windows XP Service Pack 2
ActivePerl-5.8.6.811-MSWin32-x86-122208
cacti-0.8.6d
mysql-4.1.12-win32
php-5.0.4-Win32
rrdtool-cygwin-1.2.9
net-snmp-5.2.1
apache_2.0.54-win32-x86-no_ssl]
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I don't believe you can have the MS agent running along side the net-snmp one, since they operate on the same port. Looked in the event log if the MS agent even started?

You're doing the configurating as an admin, right?
CactiPadawan
Posts: 23
Joined: Mon Jun 06, 2005 11:15 am

Post by CactiPadawan »

When i tried the MS Agent i had uninstalled NET-SNMP and yes MS AGENT was running, you can see it easily in the service manager or in the task manager.

My question is :

Is there a place where you can define options for the MS-Agent (and that is not the service properties présent in the service manager ... i dont understand why buttons are in grey >< , ill retry it and reboot ...)

Do you know how to verify if MS Agent is listening on the right port ? or define the port MS Agent is listening on ?
[My config :
Windows XP Service Pack 2
ActivePerl-5.8.6.811-MSWin32-x86-122208
cacti-0.8.6d
mysql-4.1.12-win32
php-5.0.4-Win32
rrdtool-cygwin-1.2.9
net-snmp-5.2.1
apache_2.0.54-win32-x86-no_ssl]
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) Is the MS agent service started?
2) You're in the Security tab, trying to add an accepted community name, right?
3) You can use TCPView from sysinternals.com to see if the snmp service is truely listening on a port.
CactiPadawan
Posts: 23
Joined: Mon Jun 06, 2005 11:15 am

Post by CactiPadawan »

As you can see , services are running and in the properties i can't add anything . . .

(yes i am admin on the machine :'( )

( in the above 2nd screenshot on the right you can see that services are running ... "Démarré" means running. )

/cry
Attachments
As you can see i can't add anything . . .
As you can see i can't add anything . . .
greybox.JPG (41.34 KiB) Viewed 9308 times
same ..
same ..
greybox2.JPG (32.82 KiB) Viewed 9308 times
[My config :
Windows XP Service Pack 2
ActivePerl-5.8.6.811-MSWin32-x86-122208
cacti-0.8.6d
mysql-4.1.12-win32
php-5.0.4-Win32
rrdtool-cygwin-1.2.9
net-snmp-5.2.1
apache_2.0.54-win32-x86-no_ssl]
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Did you look in the event log to see if there are any error messages?

My only guess is that the net-snmp agent some how messed up the MS one. Tried reinstalling the MS agent?
CactiPadawan
Posts: 23
Joined: Mon Jun 06, 2005 11:15 am

Post by CactiPadawan »

I did not see any error message in the event log ... just :
Information : SNMP service is running correctly.

:cry:

Actually netsnmp agent is stopped but i didnt uninstalled it via the install programs menu because in cacti configuration i need to give a path to snmpget and snmpwalk ....

in fact i used the unregisteragent.bat.

dont know how to solve the problem ....

If someone has a link where i can have informations on the MS SnmpAgent , files where properties are saved, mibs he can handle , i would like it.

I used TCPview :

while using net-snmp here are the processes running :

snmpd.exe:2792 UDP hostname:snmp *:*
snmpd.exe:2792 UDP hostname:1721 *:*
snmpd.exe:2792 UDP hostname:1717 *:*
snmpd.exe:2792 UDP hostname:1719 *:*
snmpd.exe:2792 UDP hostname:1720 *:*
snmpd.exe:2792 UDP hostname:1718 *:*
snmpd.exe:2792 UDP hostname:1723 *:*
snmpd.exe:2792 UDP hostname:1722 *:*
snmptrapd.exe:4036 UDP hostname:snmptrap *:*


while using ms-agend , here are the processes running :

snmp.exe:4056 UDP hostname:snmp *:*
snmptrap.exe:3632 UDP hostname:snmptrap *:*

notice that while using Net-snmp or MS agent the state column
is empty for all those processes.
(i have other processes whose state column value is time_wait/listening/established)

Thank you.

(sorry about my english)
[My config :
Windows XP Service Pack 2
ActivePerl-5.8.6.811-MSWin32-x86-122208
cacti-0.8.6d
mysql-4.1.12-win32
php-5.0.4-Win32
rrdtool-cygwin-1.2.9
net-snmp-5.2.1
apache_2.0.54-win32-x86-no_ssl]
oxy
Posts: 18
Joined: Wed Sep 01, 2004 3:58 am

Post by oxy »

gorgeous !!!
CactiPadawan
Posts: 23
Joined: Mon Jun 06, 2005 11:15 am

Post by CactiPadawan »

bump
[My config :
Windows XP Service Pack 2
ActivePerl-5.8.6.811-MSWin32-x86-122208
cacti-0.8.6d
mysql-4.1.12-win32
php-5.0.4-Win32
rrdtool-cygwin-1.2.9
net-snmp-5.2.1
apache_2.0.54-win32-x86-no_ssl]
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

No idea dude.

Using GetIf locally on the computer does not work either with the MS agent running?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests