Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Thu Apr 17, 2014 9:59 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: ucd/net snmp monitored processes templates v. 1.0
PostPosted: Sun Feb 11, 2007 9:52 am 
Offline
User avatar

Joined: Sun Feb 11, 2007 9:43 am
Posts: 5
Hi,

When snmpd is configured to monitor a process using the "proc" configuration directive, the count of currently running processes can be graphed using Cacti.

Example snmpd.conf entry:
Code:
   proc init
   proc blubber


Would produce:
Code:
   $ snmpwalk -v2c -c public localhost .1.3.6.1.4.1.2021.2
   UCD-SNMP-MIB::prIndex.1 = INTEGER: 1
   UCD-SNMP-MIB::prIndex.2 = INTEGER: 2
   UCD-SNMP-MIB::prNames.1 = STRING: init
   UCD-SNMP-MIB::prNames.2 = STRING: blubber
   UCD-SNMP-MIB::prMin.1 = INTEGER: 0
   UCD-SNMP-MIB::prMin.2 = INTEGER: 0
   UCD-SNMP-MIB::prMax.1 = INTEGER: 0
   UCD-SNMP-MIB::prMax.2 = INTEGER: 0
   UCD-SNMP-MIB::prCount.1 = INTEGER: 1
   UCD-SNMP-MIB::prCount.2 = INTEGER: 0
   UCD-SNMP-MIB::prErrorFlag.1 = INTEGER: noError(0)
   UCD-SNMP-MIB::prErrorFlag.2 = INTEGER: error(1)
   UCD-SNMP-MIB::prErrMessage.1 = STRING:
   UCD-SNMP-MIB::prErrMessage.2 = STRING: No blubber process running.
   UCD-SNMP-MIB::prErrFix.1 = INTEGER: noError(0)
   UCD-SNMP-MIB::prErrFix.2 = INTEGER: noError(0)
   UCD-SNMP-MIB::prErrFixCmd.1 = STRING:
   UCD-SNMP-MIB::prErrFixCmd.2 = STRING:


The provided graph template is rather simple, just the count of the process is graphed - it may be extended to show the minimum and the maximum values too.

For installation instructions see included INSTALL file.

Hope the templates are useful,
Matthias


Attachments:
File comment: Cacti templates and snmp data query definition.
ucdnet_monitored_processes-1.0.tar.gz [10.97 KiB]
Downloaded 1357 times
Top
 Profile  
 
 Post subject: hash error
PostPosted: Fri Mar 02, 2007 11:57 am 
Offline
Cacti User
User avatar

Joined: Mon Jan 22, 2007 9:41 am
Posts: 97
Location: Ottawa,Canada
I get a hash error when import the template! damn!

Which version of cacti are you using?

_________________
If all else fails, rm -rf /


Top
 Profile  
 
 Post subject: Re: hash error
PostPosted: Sat Mar 03, 2007 8:20 am 
Offline
User avatar

Joined: Sun Feb 11, 2007 9:43 am
Posts: 5
sebbs wrote:
I get a hash error when import the template! damn!

Which version of cacti are you using?


I was using the latest version 0.8.6j for exporting the files - what's yours? I'm not sure if it's possible to export the files for an older version, however... ?!

Regards,
Matthias


Top
 Profile  
 
 Post subject: ah well
PostPosted: Sat Mar 03, 2007 8:42 am 
Offline
Cacti User
User avatar

Joined: Mon Jan 22, 2007 9:41 am
Posts: 97
Location: Ottawa,Canada
ya, using 8i..

Maybe one of the experts on this board..know how to convert the hash to a previous version? Off hand, I am not sure.

_________________
If all else fails, rm -rf /


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 03, 2007 11:07 am 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14861
Location: MI, USA
Well dirty little secret. You need to edit include/config_arrays.php. In there you will find a versions array, I think 0.8.6j is "013". How's that. You should really upgrade :) Cautiously of course....

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: thanks
PostPosted: Sat Mar 03, 2007 2:35 pm 
Offline
Cacti User
User avatar

Joined: Mon Jan 22, 2007 9:41 am
Posts: 97
Location: Ottawa,Canada
thanks very much for the help.

_________________
If all else fails, rm -rf /


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 16, 2007 1:31 pm 
Offline

Joined: Wed May 16, 2007 4:58 am
Posts: 13
Is there any way to get this same information from a Windows agent when Cacti is running on a Linux server? This has been great for all my linux servers, but I need to verify a certain number of processes are running on Windows as well. Thanks.


Top
 Profile  
 
 Post subject: Re: ucd/net snmp monitored processes templates v. 1.0
PostPosted: Thu Aug 04, 2011 10:19 am 
Offline

Joined: Wed Dec 02, 2009 1:20 pm
Posts: 4
Someone is having or has had the same problem as me? When I create the threshold of a graph generated from the proc (example: httpd processes) and graph_template graph_id fields are 0. The other charts I have are with the correct data in the bank.

Thus, when I receive a notification by e-mail one of these charts come with the following message:

Could not open!
http://IP_SERVER//graph_image.php?local_graph_id=0&rra_id=0&view_type=tree

The image that comes in the mail can not be opened. In the id is the message I see that as 0 instead of the correct id. In the database table thold_data noticed that the fields are graph_template graph_id and 0. The other charts I've ever had before installing your template with these fields are correct. ?

I am sending an attachment with the print of the bank.


Attachments:
capture.png
capture.png [ 131.57 KiB | Viewed 4634 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google Adsense [Bot] and 5 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