aloe event console add on

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

Moderators: Developers, Moderators

oharel
Cacti User
Posts: 84
Joined: Wed Jan 07, 2004 11:16 am

Post by oharel »

Hi Phil,

i never cease to amaze me: it seems that the problem was not with the xmls or scripts, but with the user; when i first implemented the aloe-config xml, i did not want to lose the previous script functionality until this one is working. so i renamed the aloe-config to newaloe-config.xml but forgot to rename the $aloe_config_file on inthealth.pl :oops: as soon as i did that i ran the debug you asked and it looked better (lots of oids). then it created the xmls in their proper place and created the inerface-health page of the graph. the rrds are getting updated now :)

one thing though - i had to put spaces in the Data Input Method path.

moving on...
in the aloe tab, why do i have under show all hosts only localhost, and then, nothing happens when i click on it?

thanks for everything till now!

-harel
sidewinder
Cacti User
Posts: 66
Joined: Sat Dec 06, 2003 12:44 pm
Location: Winchester, MA

Post by sidewinder »

harel,
i never cease to amaze me: it seems that the problem was not with the xmls or scripts, but with the user; when i first implemented the aloe-config xml, i did not want to lose the previous script functionality until this one is working. so i renamed the aloe-config to newaloe-config.xml but forgot to rename the $aloe_config_file on inthealth.pl :oops: as soon as i did that i ran the debug you asked and it looked better (lots of oids). then it created the xmls in their proper place and created the inerface-health page of the graph. the rrds are getting updated now :)
Great, glad it's working for you.

one thing though - i had to put spaces in the Data Input Method path.

I'll have to try and import the XML file into a fresh cacti install (maybe 8.6). Something didn't happen right for sure. The export xml was from a working script, data and graph templete.

One thing befor moving on, i ran into a problem while testing some modifications to this script. The Interface Accuracy alert never gets triggered, to fix it i had to replace

Code: Select all

if ($cooked_ifAccuracy = 100) {
with

Code: Select all

if ($cooked_ifAccuracy == 100) {
Should be line 341 if you want to update it, otherwise let me know and can post a fixed script.
moving on...
in the aloe tab, why do i have under show all hosts only localhost, and then, nothing happens when i click on it?
That's there so you can filter messgages by selected host(s). You select the host(s) that you want to see messages for, then click the GO button.
It's more relevant if you have multiple hosts logging to a syslog and are using something like syslogng that can store it's messages in MySQL.

Cheers,
Phil
oharel
Cacti User
Posts: 84
Joined: Wed Jan 07, 2004 11:16 am

Post by oharel »

hi Phil,
The Interface Accuracy alert never gets triggered, to fix it i had to replace
copied and fixed. thanks!

i had some questions about the bandwidth configured for each serial interface i am trying to poll, it always showing 1.544mb, regardless of its actual capacity, but after some trial and error, i changed the interfaces' "bandwidth" on the router itself and it solved the problem. i also found that if an interface can pass more than 1.544mbps, and is not configured correctly, you will get a pretty weird graph...

ok, i think i will stop bugging you for at least 18 hours :D
i will probably ask you next if you have a "generic" script to create the xmls and alerts and so on for a custom OID, and we'll start from the beginning...

thanks for the help so far
--harel
oharel
Cacti User
Posts: 84
Joined: Wed Jan 07, 2004 11:16 am

Post by oharel »

ok, so now i am asking :)
basically, i dont need the whole health pages created and everything, but "just" a way to have cacti read the output of an rrd, and then, if below or above a threshold, send a notification about it.
i thought about letting it use aloe db, say create a new sql table for it, like you did with the ping-probe and int-health. however, since i know zilch about it, (not to mention dont have the time to learn it and debug - oh lazy me) can you think up a tool to do it automatically, based on pre-configured parameters?

--harel
sidewinder
Cacti User
Posts: 66
Joined: Sat Dec 06, 2003 12:44 pm
Location: Winchester, MA

Post by sidewinder »

oharel wrote:ok, so now i am asking :)
basically, i dont need the whole health pages created and everything, but "just" a way to have cacti read the output of an rrd, and then, if below or above a threshold, send a notification about it.
i thought about letting it use aloe db, say create a new sql table for it, like you did with the ping-probe and int-health. however, since i know zilch about it, (not to mention dont have the time to learn it and debug - oh lazy me) can you think up a tool to do it automatically, based on pre-configured parameters?

--harel
Without giving it much thought, not really. If it is an snmp value or somthing an existing script is generating, i could probably modify it or come up with a generic perl script to use instead of of the pollers, but that's about the bestest i could do right now. I think i'm at a point with the aloe perl library where i can start porting it over to php, after which it may be possible to put some hooks into cmd.php to check thresholds and such, but i don't know when i would have something ready.

-Phil
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Hey Phil, to keep from duplicating effort in this area, let's make sure we team up on the design. This one is near and dear to my heart and I want to make sure it is through.

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

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Guest

How can I insatll aloe in cacti-0.86

Post by Guest »

Hi all...

I'd like to install and test "aloe"...
It would be very useful to me...
I'm using cacti 0.86 on Linux.

So I tried to install by instruction(aloe.readme)
but I got the following error when I press the "graph" button.
I guess there are differences in top_graph_header.php and top_header.php with cacti086.

Is there any one who tried aloe with cacti0.86?

I hope your support....
Thanks.

===============================================
Warning: main(/home/nms/cacti-0.8.6/lib/tree_view.php): failed to open stream: No such file or directory in /home/nms/cacti-0.8.6/include/top_graph_header.php on line 30

Warning: main(): Failed opening '/home/nms/cacti-0.8.6/lib/tree_view.php' for inclusion (include_path='.:/usr/share/pear') in /home/nms/cacti-0.8.6/include/top_graph_header.php on line 30

Warning: Cannot modify header information - headers already sent by (output started at /home/nms/cacti-0.8.6/include/top_graph_header.php:30) in /home/nms/cacti-0.8.6/include/top_graph_header.php on line 51

Fatal error: Call to undefined function: grow_dhtml_trees() in /home/nms/cacti-0.8.6/include/top_graph_header.php on line 155
Fatal error: Call to undefined function: get_xml_data_source_path() in /home/nms/cacti-0.8.6/graph_xml_view.php on line 32
sidewinder
Cacti User
Posts: 66
Joined: Sat Dec 06, 2003 12:44 pm
Location: Winchester, MA

Post by sidewinder »

Is there any one who tried aloe with cacti0.86?
Being that 8.6 is relatively new and still going through some changes, i have yet to put in any effort to integrate aloe at this time. I hope to begin integrating it in the near future. I've been making some improvements to the event handling so that perl and php scripts can use it, so if you are not running php 5, then i suggest you start planning your upgrade.

-sidewinder
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests