Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Tue Jun 18, 2019 12:41 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 242 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 17  Next
Author Message
 Post subject:
PostPosted: Sat Apr 23, 2005 3:16 pm 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 12160
Location: USA
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>

_________________

| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 24, 2005 5:15 am 
Offline

Joined: Tue Feb 08, 2005 9:32 am
Posts: 18
[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?


Top
 Profile  
 
 Post subject: please have a look
PostPosted: Sun Apr 24, 2005 5:37 am 
Offline

Joined: Tue Feb 08, 2005 9:32 am
Posts: 18
i understand what your said,but when i select a process to graph,it apear the message ,


Attachments:
&#25429;&#33719;_3.jpg
&#25429;&#33719;_3.jpg [ 86.77 KiB | Viewed 11694 times ]
&#25429;&#33719;_3.jpg
&#25429;&#33719;_3.jpg [ 86.77 KiB | Viewed 11695 times ]
&#25429;&#33719;_2.jpg
&#25429;&#33719;_2.jpg [ 83.22 KiB | Viewed 11696 times ]
Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 24, 2005 12:55 pm 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 12160
Location: USA
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?

_________________

| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |


Top
 Profile  
 
 Post subject: Kbytes in snmpwalk result
PostPosted: Mon Apr 25, 2005 3:46 am 
Offline

Joined: Mon Mar 21, 2005 10:01 am
Posts: 14
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.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 25, 2005 12:31 pm 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 12160
Location: USA
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).

_________________

| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 25, 2005 1:08 pm 
Offline
Cacti User

Joined: Tue Mar 08, 2005 9:51 pm
Posts: 205
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.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 25, 2005 6:02 pm 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 12160
Location: USA
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>

_________________

| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |


Top
 Profile  
 
 Post subject: please have a look
PostPosted: Mon Apr 25, 2005 10:12 pm 
Offline

Joined: Tue Feb 08, 2005 9:32 am
Posts: 18
there are two pictures for my system graph


Attachments:
&#25429;&#33719;_4.jpg
&#25429;&#33719;_4.jpg [ 106.88 KiB | Viewed 11640 times ]
File comment: new error
&#25429;&#33719;_5.jpg
&#25429;&#33719;_5.jpg [ 58.54 KiB | Viewed 11641 times ]
Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 25, 2005 11:53 pm 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 12160
Location: USA
Was there a question?

_________________

| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |


Top
 Profile  
 
 Post subject: Kbytes in snmpwalk result
PostPosted: Tue Apr 26, 2005 5:35 am 
Offline

Joined: Mon Mar 21, 2005 10:01 am
Posts: 14
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 27, 2005 6:25 pm 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 12160
Location: USA
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.

_________________

| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |


Top
 Profile  
 
 Post subject: REGEXP
PostPosted: Thu Apr 28, 2005 3:08 am 
Offline

Joined: Mon Mar 21, 2005 10:01 am
Posts: 14
It works!!!
The functions.php patched version works!

Thanks for the tip.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 23, 2005 4:19 am 
Offline

Joined: Wed Apr 20, 2005 9:07 am
Posts: 11
Location: France
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 23, 2005 1:17 pm 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 12160
Location: USA
Use GetIF and look at the OID tree for the device. Is the memory information present? I'm betting it's not.

_________________

| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 242 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 17  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot] and 6 guests


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