Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
By default, the index type will use 'hrSWRunIndex'. This number is the same as the PID in process manager. You want to change it to use 'hrSWRunName' for each process. Type in the executables name (i.e. winamp.exe). You can find the name at top of the screen for the process you're working on (i.e. computername - process - processname
and upon restarting a process and picking up a new PID Im getting error messages on the processes that were setup previously when poller.php runs thus no new data to graph.
I can remove the data sources and add them back and everything will work until the next restart.
You're saying you close a process, reopen it, and the data source is no longer valid? The only time the new PID is by default reindexed is when the number of processes changes. If this creates a problem, then you can change the reindex method to 'verify all fields'.
You're saying you close a process, reopen it, and the data source is no longer valid?
Yes.. Tried the verify all fields>> didnt work for me
What is happening is although I am using run name for the data source, when poller.php runs it is still looking for original PID number.
I have also found that if I remove all of the data sources that I had setup (relative to this plugin) the nextime I add a new data source poller is trying to locate all of the previous PIDS I had setup before.
I am thinking "cache problem" because when I click clear poller cache from the Cacti System Utilities menu nothing happens. The same data is still there. Could be a separate issue. I am still learning
Here you go Witness
Attachments
Atkins-Advantage-Pralines.gif (1.58 KiB) Viewed 10727 times
1) the fix TheWitness is talking about will come in Cacti 0.8.6e by adding <index_type>nonunique</index_type> to the xml.
2) It sounds like you did not change the datasource hrSWRunName and the process name you want to monitor.
The only time Cacti will reindex the processes (aka refresh the PIDs), is if the number of them changes between polling cycles. When that happens, you'll see something like this in the log: CMDPHP: Poller[0] ASSERT: '40=36' failed. Recaching host 'gamerxp.zeus.xxx.com', data query #14. The <oid_num_indexes> line in win32_procs.xml triggers this.
So if a process closes and reopens again, resulting in the same number of processes, Cacti will not (currently) refresh the PIDs. I though changing the polling method to 'verify all fields' would've force cacti to do this.
+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:\Apache2\htdocs\cacti/resource/snmp_queries/win32_procs.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.25.4.2.1.1'
+ No SNMP data returned
+ Found data query XML file at 'C:\Apache2\htdocs\cacti/resource/snmp_queries/win32_procs.xml'
+ Found data query XML file at 'C:\Apache2\htdocs\cacti/resource/snmp_queries/win32_procs.xml'
+ Found data query XML file at 'C:\Apache2\htdocs\cacti/resource/snmp_queries/win32_procs.xml'
It seems i havent the right mib ... how to fix that ?
[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]
This readme says too that "The OS platform is probably the least reliable of the columns" ok but when i try a snmpwalk on my Win XP there is no OID associated with HOST-RESSOURCES-MIB or UCD-SNMP-MIB (or juste FileTable..) ... if i try with snmpget on a the OID you use in your scripts i have no result.
If i try the same (snmpwalk / snmpget) on a Linux based machine i can gather all the informations...
So it seems that i havent the right mibs installed
i read that file http://www.net-snmp.org/docs/FAQ.html#H ... _the_agent_
and i would like to know what kind of method you used to add a MIB that work with Win32 based platform ....
Please help ^^
Thank you in advance
[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]