Plugin Architecture for Cacti and Monitoring Module
Moderators: Developers, Moderators
-
- Posts: 16
- Joined: Thu Jul 14, 2005 8:55 am
found another
Current value not displayed on the threshold setup page. Also - im still getting a 0 for a current value on some of the thresholds I have set. They come back as zero as before and alert even though the value is not below the threshold. This one shows a value of 20 and the threshold shows 0
see the image bug.gif for the one bug of just the current value on the threshold setup page.
see the image bug.gif for the one bug of just the current value on the threshold setup page.
- Attachments
-
- graphbad.GIF (45.89 KiB) Viewed 6173 times
-
- threshbad.GIF (9.85 KiB) Viewed 6173 times
-
- bug.GIF (17.5 KiB) Viewed 6178 times
Re: found another
Not really sure what is causing the issue, but I will continue to debug it.skuzbucket wrote:Current value not displayed on the threshold setup page. Also - im still getting a 0 for a current value on some of the thresholds I have set. They come back as zero as before and alert even though the value is not below the threshold. This one shows a value of 20 and the threshold shows 0
see the image bug.gif for the one bug of just the current value on the threshold setup page.
But I will have to take a look at this on Monday. I will be gone fishing for the weekend and will have to get to it then. In the meantime. I have just updated the Monitor Plugin to allow you to set the Refresh Rate and the Number of Hosts wide that it shows. I have also included the Faster Poller, so that you can set it to poll every minute. I recommend polling every minute, and setting the refresh to 30 seconds.
Let me know if you have any issues with it or find anything else. With the Monitor plugin, I plan to next make the Sound File configurable. Just drop all the sounds in the folder, it will detect them and give you a nice drop down box to select it.
Re: Meta Refresh added to monitor
if i'm logging in as user 'admin' and go directly from the console pageskuzbucket wrote:Can you add something REALLY simple to the monitor page? A setting that will allow you to set how often the monitor page refreshes automatically? Right now you need to manually reload it.
Just an idea
Thanks again Jimmy!
to the monitor page, the meta tag for the screen refresh is missing.
so after login as 'admin' i click once to the graphs page and then i go
to the monitor page, and now the monitor page is refreshed.
strange but it works
best regards,
Schwan
refresh
Just added the Plugins to my 0.8.6f Windows install and all looks good so far. Congrats on a great idea!
On a side note I noticed that the most recent download for monitoring didnt actually refresh the monitoring page? (or maybe its just me).
The function for checking the refresh value was in the setup.php, just not used in the monitor.php I downloaded? I added the following line to monitor.php for the moment.
On a side note, I have a few questions for you?
1. Again, it may just be me, but there doesnt seem to be a button to turn the sounds back on once disabled? (usefull for when you've just fixed something.
2. Can we manually set the audio alarm to re-enable after a specified timescale?
3. Can you send e-mail alerts based on the host downs?
4. What parameters does fast_poller use to detect host down? Is it just pings? Does it use the values specified for ping/snmp timeouts in the main cacti config settings?
Many thanks
cheers
Rossco
On a side note I noticed that the most recent download for monitoring didnt actually refresh the monitoring page? (or maybe its just me).
The function for checking the refresh value was in the setup.php, just not used in the monitor.php I downloaded? I added the following line to monitor.php for the moment.
Code: Select all
// Rossco's bodge
$temp_refresh = monitor_top_graph_refresh();
print '<META HTTP-EQUIV="REFRESH" CONTENT="'. $temp_refresh. '" />';
1. Again, it may just be me, but there doesnt seem to be a button to turn the sounds back on once disabled? (usefull for when you've just fixed something.
2. Can we manually set the audio alarm to re-enable after a specified timescale?
3. Can you send e-mail alerts based on the host downs?
4. What parameters does fast_poller use to detect host down? Is it just pings? Does it use the values specified for ping/snmp timeouts in the main cacti config settings?
Many thanks
cheers
Rossco
Re: refresh
I have found the issue and fixed it. Seems that the code for the hook needs to be changed slightly. I have made a work around in the Monitor plugin until I can update the Plugin Architecture itself (this seems to be something they changed in the core when going from Cacti v0.8.6e to v0.8.6f)Rossco wrote:Just added the Plugins to my 0.8.6f Windows install and all looks good so far. Congrats on a great idea!
On a side note I noticed that the most recent download for monitoring didnt actually refresh the monitoring page? (or maybe its just me).
The function for checking the refresh value was in the setup.php, just not used in the monitor.php I downloaded? I added the following line to monitor.php for the moment.
On a side note, I have a few questions for you?Code: Select all
// Rossco's bodge $temp_refresh = monitor_top_graph_refresh(); print '<META HTTP-EQUIV="REFRESH" CONTENT="'. $temp_refresh. '" />';
It stores alot of information in the Sessions (like the names of the down hosts) and has a few AI function that will auto-re-enable once it sees that it needs to. If all hosts are back up, it will re-enable the alarm. If a new host goes down, it will re-enable the alarm. It is made this way to make sure that you don't have to re-enable it yourself. Otherwise you could run into problems when you forget to, and then hosts go down and you don't get alarmed.Rossco wrote:1. Again, it may just be me, but there doesnt seem to be a button to turn the sounds back on once disabled? (usefull for when you've just fixed something.
I don't see why this would be necessary since it will only alarm when it needs to. Unless you want it to go off again incase someone forgot about it?Rossco wrote:2. Can we manually set the audio alarm to re-enable after a specified timescale?
I do definitely see that as a possibility. I will see what I can work on.Rossco wrote:3. Can you send e-mail alerts based on the host downs?
It uses what ever you have set for the regular poller. The only thing it doesn't do is use Cactid to SNMP poll the devices, since I would have to re-write a special version of it to just check for down status.Rossco wrote: 4. What parameters does fast_poller use to detect host down? Is it just pings? Does it use the values specified for ping/snmp timeouts in the main cacti config settings?
Re: Meta Refresh added to monitor
This is because in Cacti v0.8.6f they started requiring $_SESSION['custom'] to be set before a meta tag would be placed. Earlier versions didn't seem to have this issue. I have updated my Plugin to work around it and it should be working now.Schwan wrote: if i'm logging in as user 'admin' and go directly from the console page
to the monitor page, the meta tag for the screen refresh is missing.
so after login as 'admin' i click once to the graphs page and then i go
to the monitor page, and now the monitor page is refreshed.
strange but it works
best regards,
Schwan
Re: refresh
Hi Cigamit
Thanks for your response. I'll update to the latest code.
And yes, I was thinking of the re-enable after timeout thingy to remind people if something is broken for long time periods.
Kind Regards
Rossco
Thanks for your response. I'll update to the latest code.
And yes, I was thinking of the re-enable after timeout thingy to remind people if something is broken for long time periods.
Kind Regards
Rossco
Re: refresh
I will see what I can do to add this in, with a configurable time period (defaults to off though).Rossco wrote:Hi Cigamit
Thanks for your response. I'll update to the latest code.
And yes, I was thinking of the re-enable after timeout thingy to remind people if something is broken for long time periods.
Kind Regards
Rossco
Also, I updated the Thold Plugin to fix a slight annoyance. You can now "Disable" thresholds from being checked, just like you can disable devices. This allows you to actually stop a threshold from alerting temporarily while you work on the issue, where before you had to either modify or remove the threshold to stop it.
-
- Posts: 18
- Joined: Sat Aug 13, 2005 1:37 pm
Installing Plugin Architecture on Windows Box
cigamit
This looks like a brilliant set of functions... I am testing Cacti on both Windows and Linux and being a noobe can you please tell me how I can install the plugin architecture on a Windows Box... everything else is working fine....
I have checked your cactiuser.org and this forum but cant find it.... probably being stupid!!!
Thanks in advance
This looks like a brilliant set of functions... I am testing Cacti on both Windows and Linux and being a noobe can you please tell me how I can install the plugin architecture on a Windows Box... everything else is working fine....
I have checked your cactiuser.org and this forum but cant find it.... probably being stupid!!!
Thanks in advance
Re: Installing Plugin Architecture on Windows Box
The first post in this thread tells you pretty much everything you need to know. I am currently creating a How-to on the subject, but it will be a few days before I can complete it.jamesmarmstrong wrote:cigamit
This looks like a brilliant set of functions... I am testing Cacti on both Windows and Linux and being a noobe can you please tell me how I can install the plugin architecture on a Windows Box... everything else is working fine....
I have checked your cactiuser.org and this forum but cant find it.... probably being stupid!!!
Thanks in advance
"The Quick and Simple instructions"
1. Download the Plugin Architecture
2. Extract it, there should be a folder called "files" in the archive
3. Override your cacti files with the files in that folder (always backup first!)
4. Reconfigure your includes/config.php for your database.
5. Done!
-
- Posts: 18
- Joined: Sat Aug 13, 2005 1:37 pm
Problems when using plugins
Hi, Ive just tried the plugin arch with the monitor plugin.
This is on a fresh 0.8.6f patched up to the latest.
after installing (coping files into the cacti directory) I get the following output in the browser
All links cannot be found if clicked on.
Any help would be apreciated.
thanks
Brett Stevens
This is on a fresh 0.8.6f patched up to the latest.
after installing (coping files into the cacti directory) I get the following output in the browser
All links cannot be found if clicked on.
Any help would be apreciated.
thanks
Brett Stevens
- Attachments
-
- cacti-out.jpg (29.6 KiB) Viewed 5800 times
Re: Problems when using plugins
Did you modify the include/config.php file and change the url_path?BrettS wrote:Hi, Ive just tried the plugin arch with the monitor plugin.
This is on a fresh 0.8.6f patched up to the latest.
after installing (coping files into the cacti directory) I get the following output in the browser
All links cannot be found if clicked on.
Any help would be apreciated.
thanks
Brett Stevens
In your case, you should set it to
Code: Select all
$config["url_path"] = '/cacti/';
plugin arch and cactid
Since I have installed the plugin arch, I have not been able to get cactid to work correctly. Am I missing something, or has anyone seen this before?
Re: plugin arch and cactid
Cactid and the plugin architecture run perfectly fine together on all the test boxes I have them running on (I haven't used cmd.php for a fairly long time). All my developing has been done while using Cactid also.chadd wrote:Since I have installed the plugin arch, I have not been able to get cactid to work correctly. Am I missing something, or has anyone seen this before?
Who is online
Users browsing this forum: No registered users and 1 guest