|
|
| Author |
Message |
oharel Cacti User
Joined: 07 Jan 2004 Posts: 84
|
Posted: Sun Aug 15, 2004 4:27 pm Post subject: |
|
|
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 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 |
|
| Back to top |
|
 |
sidewinder Cacti User
Joined: 06 Dec 2003 Posts: 66 Location: Winchester, MA
|
Posted: Mon Aug 16, 2004 3:40 am Post subject: |
|
|
harel,
| Quote: |
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 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: | | if ($cooked_ifAccuracy = 100) { | with
| Code: | | if ($cooked_ifAccuracy == 100) { |
Should be line 341 if you want to update it, otherwise let me know and can post a fixed script.
| Quote: | 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 |
|
| Back to top |
|
 |
oharel Cacti User
Joined: 07 Jan 2004 Posts: 84
|
Posted: Mon Aug 16, 2004 3:56 pm Post subject: |
|
|
hi Phil,
| Quote: | | 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
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 |
|
| Back to top |
|
 |
oharel Cacti User
Joined: 07 Jan 2004 Posts: 84
|
Posted: Sun Aug 22, 2004 7:25 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
sidewinder Cacti User
Joined: 06 Dec 2003 Posts: 66 Location: Winchester, MA
|
Posted: Tue Aug 24, 2004 3:26 pm Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9736 Location: MI, USA
|
Posted: Tue Aug 24, 2004 4:57 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Guest Guest
|
Posted: Wed Oct 06, 2004 11:53 pm Post subject: How can I insatll aloe in cacti-0.86 |
|
|
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 |
|
| Back to top |
|
 |
sidewinder Cacti User
Joined: 06 Dec 2003 Posts: 66 Location: Winchester, MA
|
Posted: Thu Oct 07, 2004 4:31 am Post subject: |
|
|
| Quote: | | 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 |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|