A bit different Linux health monitorin script and templates

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

Moderators: Developers, Moderators

Post Reply
art79
Posts: 11
Joined: Mon Aug 17, 2009 3:05 pm

A bit different Linux health monitorin script and templates

Post by art79 »

I was working a bit on that one too and to be honest im not sure if its a perfect solution from the organization point of view but it might be usefult to someone.

Please feel free to use it and im very interested in your feedback, im just learning cacti.

http://artur.ejsmont.org/blog/content/m ... cti-ghraph

I will probably post updates as soon as i come up with some improvements.

Take care
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

If you get a chance, if you could add these to the template repository, it would be appreciated:

http://docs.cacti.net/templates.guidelines
http://docs.cacti.net/templates
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

Your templates are missing some of the dependencies. They don't appears to have the Data Queries required for them to work.
[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
art79
Posts: 11
Joined: Mon Aug 17, 2009 3:05 pm

Still learning :- )

Post by art79 »

Oh yes i found out a few flaws in the approach already.

Biggest one was that my graphs were not connected to the data templates. I thought it would be more flexible as you could replace the input method but its way too much pain to set up new hosts like that

So im changing some things around and there will be an update soon.

I have a few problems though.

1. i have script that has only GAUGE parameters (apache process counts) and for some reason i get fractions on the graph like here
http://artur.ejsmont.org/blog/sites/def ... on_int.jpg

why would that be? i thought that GAUGE is not averaged /s or anything like that.

2. im still not sure how to change the scripts to be more efficient. I did not know before that cacti will call script for every data srource separately. So now i have tons of data sources as i generate them using host template. Having said that each script is called a few times which is not really greatest considering i call them every minute.

3. i dont know yet how to get to the /proc/ filesystem as shell scripts dont have setuid capability. I would like to query a few things from there ... any idea? only thing i have in mind is cron ran as root on each server but its complicationg things.

ps. will post update soon

Thanks
art79
Posts: 11
Joined: Mon Aug 17, 2009 3:05 pm

updated scripts

Post by art79 »

After some rework you can try out the combined host template with system/network/APC/Apache2/Memcache stats

It requires a few shell commands and im still thinking of how to reduce the amount of remote script calls easily but im getting closer ;- )

http://artur.ejsmont.org/blog/content/p ... cti-graphs

Enjoy!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest