|
|
| Author |
Message |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6769 Location: WA, USA
|
Posted: Sat Apr 23, 2005 3:16 pm Post subject: |
|
|
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
|
Posted: Sun Apr 24, 2005 5:15 am Post subject: |
|
|
[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
|
Posted: Sun Apr 24, 2005 5:37 am Post subject: please have a look |
|
|
i understand what your said,but when i select a process to graph,it apear the message ,
| Description: |
|
| Filesize: |
86.77 KB |
| Viewed: |
4610 Time(s) |

|
| Description: |
|
| Filesize: |
86.77 KB |
| Viewed: |
4611 Time(s) |

|
| Description: |
|
| Filesize: |
83.22 KB |
| Viewed: |
4612 Time(s) |

|
|
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6769 Location: WA, USA
|
Posted: Sun Apr 24, 2005 12:55 pm Post subject: |
|
|
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
|
Posted: Mon Apr 25, 2005 3:46 am Post subject: Kbytes in snmpwalk result |
|
|
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
|
Posted: Mon Apr 25, 2005 12:31 pm Post subject: |
|
|
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
|
Posted: Mon Apr 25, 2005 1:08 pm Post subject: |
|
|
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
|
Posted: Mon Apr 25, 2005 6:02 pm Post subject: |
|
|
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
|
Posted: Mon Apr 25, 2005 10:12 pm Post subject: please have a look |
|
|
there are two pictures for my system graph
| Description: |
|
| Filesize: |
106.88 KB |
| Viewed: |
4556 Time(s) |

|
| Description: |
|
| Filesize: |
58.54 KB |
| Viewed: |
4557 Time(s) |

|
|
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6769 Location: WA, USA
|
Posted: Mon Apr 25, 2005 11:53 pm Post subject: |
|
|
| Was there a question?
|
|
| Back to top |
|
 |
jvlalonde
Joined: 21 Mar 2005 Posts: 14
|
Posted: Tue Apr 26, 2005 5:35 am Post subject: Kbytes in snmpwalk result |
|
|
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
but sill got KBytes after the integer.
|
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6769 Location: WA, USA
|
Posted: Wed Apr 27, 2005 6:25 pm Post subject: |
|
|
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
|
Posted: Thu Apr 28, 2005 3:08 am Post subject: REGEXP |
|
|
It works!!!
The functions.php patched version works!
Thanks for the tip.
|
|
| Back to top |
|
 |
proxyo
Joined: 20 Apr 2005 Posts: 11 Location: France
|
Posted: Mon May 23, 2005 4:19 am Post subject: |
|
|
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
|
Posted: Mon May 23, 2005 1:17 pm Post subject: |
|
|
| 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 |
|
 |
|