Plugin Architecture for Cacti and Monitoring Module

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
skuzbucket
Posts: 16
Joined: Thu Jul 14, 2005 8:55 am

found another

Post by skuzbucket »

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.
Attachments
graphbad.GIF
graphbad.GIF (45.89 KiB) Viewed 6171 times
threshbad.GIF
threshbad.GIF (9.85 KiB) Viewed 6171 times
bug.GIF
bug.GIF (17.5 KiB) Viewed 6176 times
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: found another

Post by cigamit »

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.
Not really sure what is causing the issue, but I will continue to debug it.

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.
Schwan
Posts: 8
Joined: Sun Jul 31, 2005 11:10 am

Re: Meta Refresh added to monitor

Post by Schwan »

skuzbucket 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!
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
:wink:

best regards,
Schwan
Rossco
Cacti User
Posts: 76
Joined: Sat Jan 15, 2005 4:52 pm
Location: London, England

refresh

Post by Rossco »

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.

Code: Select all

// Rossco's bodge
$temp_refresh = monitor_top_graph_refresh();
print '<META HTTP-EQUIV="REFRESH" CONTENT="'. $temp_refresh. '" />';
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
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: refresh

Post by cigamit »

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.

Code: Select all

// Rossco's bodge
$temp_refresh = monitor_top_graph_refresh();
print '<META HTTP-EQUIV="REFRESH" CONTENT="'. $temp_refresh. '" />';
On a side note, I have a few questions for you?
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: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.
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:2. Can we manually set the audio alarm to re-enable after a specified timescale?
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:3. Can you send e-mail alerts based on the host downs?
I do definitely see that as a possibility. I will see what I can work on.
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?
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.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Meta Refresh added to monitor

Post by cigamit »

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
:wink:

best regards,
Schwan
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.
Rossco
Cacti User
Posts: 76
Joined: Sat Jan 15, 2005 4:52 pm
Location: London, England

Re: refresh

Post by Rossco »

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
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: refresh

Post by cigamit »

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
I will see what I can do to add this in, with a configurable time period (defaults to off though).

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.
jamesmarmstrong
Posts: 18
Joined: Sat Aug 13, 2005 1:37 pm

Installing Plugin Architecture on Windows Box

Post by jamesmarmstrong »

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
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Installing Plugin Architecture on Windows Box

Post by cigamit »

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 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.

"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!
jamesmarmstrong
Posts: 18
Joined: Sat Aug 13, 2005 1:37 pm

Post by jamesmarmstrong »

Cigamit

Worked perfectly... thanks for your help and keep up the good work...

Cheers
BrettS
Posts: 24
Joined: Tue Feb 15, 2005 8:49 pm

Problems when using plugins

Post by BrettS »

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
Attachments
cacti-out.jpg
cacti-out.jpg (29.6 KiB) Viewed 5798 times
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Problems when using plugins

Post by cigamit »

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
Did you modify the include/config.php file and change the url_path?

In your case, you should set it to

Code: Select all

$config["url_path"] = '/cacti/';
Can you show me were one of the links points to?
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

plugin arch and cactid

Post by chadd »

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?
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: plugin arch and cactid

Post by cigamit »

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?
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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests