Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Win32 - Monitor running processes
Goto page Previous  1, 2, 3 ... 10, 11, 12
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 974

PostPosted: Mon Jan 21, 2008 5:25 am    Post subject: Error message in CACTI log Reply with quote

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
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Mon Jan 21, 2008 8:25 am    Post subject: Reply with quote

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.
Back to top
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 974

PostPosted: Mon Jan 21, 2008 8:40 am    Post subject: Reply with quote

Thanks
Back to top
Brashquido
Cacti User


Joined: 28 Feb 2004
Posts: 99
Location: Melbourne, Australia

PostPosted: Sat Apr 05, 2008 7:13 pm    Post subject: Reply with quote

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?



cacti.png
 Description:
 Filesize:  30.7 KB
 Viewed:  1179 Time(s)

cacti.png


Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6769
Location: WA, USA

PostPosted: Sat Apr 05, 2008 7:59 pm    Post subject: Reply with quote

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
Back to top
Brashquido
Cacti User


Joined: 28 Feb 2004
Posts: 99
Location: Melbourne, Australia

PostPosted: Wed Apr 09, 2008 5:31 pm    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2, 3 ... 10, 11, 12
Page 12 of 12

 



Powered by phpBB © 2001, 2005 phpBB Group