Win32 - Monitor running processes

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Error message in CACTI log

Post by mcutting »

Every time I create a graph with this template, I get the following error in the log:

01/21/2008 09:41:38 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1054', SQL:"update graph_templates_graph set name='|host_description| - Process - |query_hrSWRunName|' where local_graph_id=1978'

The graph seems to create and is updated - just wondered what this was ?

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

Error:'1054' = Unknown column error. It would seem that query is just incorrect, as there probably isn't a column named:

|host_description| - Process - |query_hrSWRunName|

That would be my guess.
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Brashquido
Cacti User
Posts: 99
Joined: Sat Feb 28, 2004 10:16 pm
Location: Melbourne, Australia
Contact:

Post by Brashquido »

First off, great script!!

Have only two issues;

1) The memory usage value displayed for each process is in megabytes, however the unit used is in kilobytes. Is there anything I can do about this?

2) I suspect this is because of very low CPU usage, but I have a problem where the usage of a particular process is not displayed as a percentage and the value displayed is wildly incorrect. Any ideas why, and if it is possible to fix?
Attachments
cacti.png
cacti.png (30.7 KiB) Viewed 8294 times
Dominic Ryan
www.iis-aid.com
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) hrSWRunPerfMem unit is defined to be "KBytes". rrdtool is simply reporting what it's getting from the host. If you want, you could create a CDEF to change from kb to mb (multiply by 1024.

2) the value have m or u in it? read http://forums.cacti.net/viewtopic.php?t=8168
Brashquido
Cacti User
Posts: 99
Joined: Sat Feb 28, 2004 10:16 pm
Location: Melbourne, Australia
Contact:

Post by Brashquido »

Ok, not worth it at this stage I think. Memory usage is reported correctly, just using the wrong units. As for second issue I don't think this can be corrected in Cacti unless there is a way to disable the autoscale on RRDTool.
Dominic Ryan
www.iis-aid.com
User avatar
Stubbed
Posts: 14
Joined: Wed May 28, 2008 4:17 am

Post by Stubbed »

Brashquido wrote:Ok, not worth it at this stage I think. Memory usage is reported correctly, just using the wrong units. As for second issue I don't think this can be corrected in Cacti unless there is a way to disable the autoscale on RRDTool.
I have the same "issue" although I would call it a non-issue. It is being reported correctly. In my case my store.exe is taking up ~600mb, cacti is reporting 590.61 k, which is 604784.64 kb.

Spot on.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Ahh, I think I know whats going on. Edit the graph template for this script and change the Base Value to 1024.
User avatar
Stubbed
Posts: 14
Joined: Wed May 28, 2008 4:17 am

Post by Stubbed »

Is there a way I can graph the total processes? Together with threshold it might help be solve an issue I'm currently having where a process is failing and creating another one every 30 minutes, so after a couple of days I have an extra 80 processes each taking up way too many resources...
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

.1.3.6.1.2.1.25.1.6.0 is the current number of processes. Use the generic snmp templates
User avatar
Stubbed
Posts: 14
Joined: Wed May 28, 2008 4:17 am

Post by Stubbed »

Win, cheers. Should have tried a Google, didn't realise there would just be a standard OID.
b3nw
Posts: 5
Joined: Thu Jul 16, 2009 3:13 pm

Post by b3nw »

Hello,

I am getting this error when I try to add the graph:

Notice: Undefined index: sgg_12 in /usr/share/cacti/site/graphs_new.php on line 71

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/graphs_new.php:71) in /usr/share/cacti/site/graphs_new.php on line 323

Everything else seems to work fine.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

b3nw: Start a new post in the linux forum. Your issue does not lay with this template. Document your cacti, mysql, php, apache, etc versions. Also read http://docs.cacti.net/manual:087:4_help.2_debugging
b3nw
Posts: 5
Joined: Thu Jul 16, 2009 3:13 pm

Post by b3nw »

even if I only get this error when I try to add processes from this script's data pull?

all other graph creation works just fine.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

b3nw wrote:all other graph creation works just fine.
What other graphs have you created and work?

What are your cacti, mysql, php, apache, etc versions? The cacti technical support page show any errors?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest