Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Win32 - Monitor running processes
Goto page Previous  1, 2, 3, 4, 5 ... 10, 11, 12  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6769
Location: WA, USA

PostPosted: Sat Apr 23, 2005 3:16 pm    Post subject: Reply with quote

1) Seems the older versions of net-snmp don't output the units (like 5.1.1).
2) Modify win32_procs.xml with the following and let me know if the units are removed. I tried it against my windows box, and everything seems to still be working (same values as before).

Code:

      <hrSWRunPerfMem>
         <name>Memory</name>
         <method>walk</method>
         <source>VALUE/REGEXP:\d+</source>
         <direction>output</direction>
         <oid>.1.3.6.1.2.1.25.5.1.1.2</oid>
      </hrSWRunPerfMem>
Back to top
nethedy



Joined: 08 Feb 2005
Posts: 18

PostPosted: Sun Apr 24, 2005 5:15 am    Post subject: Reply with quote

[quote="BSOD2600"]nethedy: What don't you understand? When you add the data query, you need to change the reindexing method to Index Count Changed. Otherwise, when you restart a process, it's PID will change and then the OID will not be valid.
quote]

BSOD2600:
what you said,"the reindexing method" mean?change where for?
Back to top
nethedy



Joined: 08 Feb 2005
Posts: 18

PostPosted: Sun Apr 24, 2005 5:37 am    Post subject: please have a look Reply with quote

i understand what your said,but when i select a process to graph,it apear the message ,


&#25429;&#33719;_3.jpg
 Description:
 Filesize:  86.77 KB
 Viewed:  4610 Time(s)

&#25429;&#33719;_3.jpg



&#25429;&#33719;_3.jpg
 Description:
 Filesize:  86.77 KB
 Viewed:  4611 Time(s)

&#25429;&#33719;_3.jpg



&#25429;&#33719;_2.jpg
 Description:
 Filesize:  83.22 KB
 Viewed:  4612 Time(s)

&#25429;&#33719;_2.jpg


Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6769
Location: WA, USA

PostPosted: Sun Apr 24, 2005 12:55 pm    Post subject: Reply with quote

nethedy: Did you change the data source Index Type to hrSWRunName and enter in the process name?

If so, then you have something misconfigured with net-snmp and the MIBs. Looks like you can't even properly get interface stats either, so there is something else you need to fix before trying to get scripts working. Does manally running snmpget against one of the OIDs for a process work?
Back to top
jvlalonde



Joined: 21 Mar 2005
Posts: 14

PostPosted: Mon Apr 25, 2005 3:46 am    Post subject: Kbytes in snmpwalk result Reply with quote

Hi,

the workaround doesn't seem to work here:

04/25/2005 10:40:23 AM - CMDPHP: Poller[0] Host[13] WARNING: Result from SNMP not valid. Partial Result: 4904 KBytes

I'm running snmpwalk (5.1.2) from a Fedora Core 3 Linux Machine and polling a Windows 2000 Server machine.
Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6769
Location: WA, USA

PostPosted: Mon Apr 25, 2005 12:31 pm    Post subject: Reply with quote

Hmm, guess I might have to install linux and get cacti set up to try and fix this. What a pain in the ass!

Anyone can feel free to play around with the proper regex to spit out the right number (although, I'm not sure why \d+ didn't work since that should only spit out repeating numbers).
Back to top
elnino
Cacti User


Joined: 08 Mar 2005
Posts: 205

PostPosted: Mon Apr 25, 2005 1:08 pm    Post subject: Reply with quote

Still getting the same error too, just like jvlalonde. I'm running a Sentinix linux box polling a Windows 2k server.

BSOD2600, if you're looking for a quick 10min linux install, try Sentinix. It comes pre-installed with Cacti (older), PHP 4.3.4 and net-snmp 5.0.9. So, you'd have to upgrade Cacti to 0.8.6c and possibly PHP and you're ready to go.
Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6769
Location: WA, USA

PostPosted: Mon Apr 25, 2005 6:02 pm    Post subject: Reply with quote

New fix to try...

Code:

      <hrSWRunPerfMem>
         <name>Memory</name>
         <method>walk</method>
         <source>VALUE/REGEXP:([0-9]).*$</source>
         <direction>output</direction>
         <oid>.1.3.6.1.2.1.25.5.1.1.2</oid>
      </hrSWRunPerfMem>
Back to top
nethedy



Joined: 08 Feb 2005
Posts: 18

PostPosted: Mon Apr 25, 2005 10:12 pm    Post subject: please have a look Reply with quote

there are two pictures for my system graph


&#25429;&#33719;_4.jpg
 Description:
 Filesize:  106.88 KB
 Viewed:  4556 Time(s)

&#25429;&#33719;_4.jpg



&#25429;&#33719;_5.jpg
 Description:
new error
 Filesize:  58.54 KB
 Viewed:  4557 Time(s)

&#25429;&#33719;_5.jpg


Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6769
Location: WA, USA

PostPosted: Mon Apr 25, 2005 11:53 pm    Post subject: Reply with quote

Was there a question?
Back to top
jvlalonde



Joined: 21 Mar 2005
Posts: 14

PostPosted: Tue Apr 26, 2005 5:35 am    Post subject: Kbytes in snmpwalk result Reply with quote

Hi,

I've just played with the REGEXP in win32_procs.xml and it seems that it's simply ignored.

I've tried diff. possibilities but I always got the same result:

Code:

04/26/2005 12:26:48 PM - CMDPHP: Poller[0] Host[13] WARNING: Result from SNMP not valid.  Partial Result: 4772 KBytes


In my opinion there should be a bug with the "VALUE/REGEXP" Option, cause I also tried to filter the exact expected result
Code:

.*(1552).*$

but sill got KBytes after the integer.
Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6769
Location: WA, USA

PostPosted: Wed Apr 27, 2005 6:25 pm    Post subject: Reply with quote

Linux users: Apply the patch found here (scroll down to the bottom). This should eliminate the pesky kbyte from appearing.

Turns out, Cacti currently does not allow regex's for output. Only input.
Back to top
jvlalonde



Joined: 21 Mar 2005
Posts: 14

PostPosted: Thu Apr 28, 2005 3:08 am    Post subject: REGEXP Reply with quote

It works!!!
The functions.php patched version works!

Thanks for the tip.
Back to top
proxyo



Joined: 20 Apr 2005
Posts: 11
Location: France

PostPosted: Mon May 23, 2005 4:19 am    Post subject: Reply with quote

Hi!

If you look on nethedy graph you would that he doesn't have any memory usage graph in his graph.
I have the same problem, i've already test this great add on without any problem... I don't understand what happened....

Anybody have a solution or a council?!
I'm under win xp pro sp2
Thanx a lot...

ProxyO
Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6769
Location: WA, USA

PostPosted: Mon May 23, 2005 1:17 pm    Post subject: Reply with quote

Use GetIF and look at the OID tree for the device. Is the memory information present? I'm betting it's not.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5 ... 10, 11, 12  Next
Page 4 of 12

 



Powered by phpBB © 2001, 2005 phpBB Group