Thold 2.x - Thresholding/Alerting module for cacti 8.6

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Locked
royce
Cacti User
Posts: 79
Joined: Wed Dec 29, 2004 7:37 am
Location: Sweden

Post by royce »

Hi!

Create a cacti-directive and enable it within that directive, i.e

Code: Select all

<DirectoryMatch /path/to/cacti/>
        Options +FollowSymLinks
        AllowOverride None
        order allow,deny
        allow from all
        <IfModule mod_php4.c>
                AddType application/x-httpd-php .php

                php_flag magic_quotes_gpc Off
                php_flag short_open_tag On
                php_flag register_globals On
                php_flag register_argc_argv On
                php_flag track_vars On
                php_value include_path .
                php_value display_errors Off

                DirectoryIndex index.php
        </IfModule>
</DirectoryMatch>

Christofer
Mika
Cacti User
Posts: 64
Joined: Tue Mar 23, 2004 3:01 am

Post by Mika »

royce,
sorry for dump question, but could you please explain that more detailed?
is that a separate file you wrote here down, or should I add it in some other file? where should I create that directive.

Thanks in advance for helping,
Mika
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Alarm message with wrong link included

Post by Pumpi »

When I receive a threshold alarm mail the link which is included is not correct - perhaps a my mistake ?

"https://192.x.x.x/cacti/cacti/graph.php ... 6&rra_id=1"

should be

"https://192.x.x.x/cacti/graph.php?local ... 06&rra_id="


Any ideas ?

Pumpi
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

... to stupid
Cacti base URL
was wrong

:oops:

.... it's time for the weekend :wink:
User avatar
solefald
Posts: 38
Joined: Fri Jun 11, 2004 1:35 pm

feature request

Post by solefald »

I am currently migrating bunch of graphs from Cricket but unfortunately i am not able to completely get rid of it.

Currently we are using a perl script that sends snmp traps to the TNG,
which alerts our NOC operators. Is there a possibility of having a feature where you can choose between sending mail to a specified email address or
running external command with specified arguments.

Domething like this:

Code: Select all

sendTrap.pl PRDC-IPSEC CRIT MAIL PRDC Encryption Failed
here is how sendTrap used:

Code: Select all

Usage:  sendTrap.pl [source] [severity] [action] [message]
  Source: One Word Discriptor of sending application
  Severiy: CRIT, WARN, INFO, TEST, SUCC, ATTN, or DOWN
  action:  MAIL or NONE
  message: Up to 255 character message.

Examples:
  sendTrap.pl APP TEST MAIL This is a test
I am sure alot of people would appreciate an ability to run external scripts.

thanks in advance
royce
Cacti User
Posts: 79
Joined: Wed Dec 29, 2004 7:37 am
Location: Sweden

Post by royce »

Mika wrote:royce,
sorry for dump question, but could you please explain that more detailed?
is that a separate file you wrote here down, or should I add it in some other file? where should I create that directive.

Thanks in advance for helping,
Mika
hi, in your apache httpd.conf, you can add special "features" for a specified path on your server. My point here is that you could enable short php tags for the cacti-path only in order to get thold2.1 work.

The code in my earlier post could be included at the bottom of apache's httpd.conf

Code: Select all

Include /path/to/the/include.conf
Don't forget to change the paths.

Christofer
neophyte
Posts: 3
Joined: Sat Feb 12, 2005 3:58 pm

Post by neophyte »

Hi,

I'm having a small problem with thold2.1a. I can setup everything, but tholds doesn't seem to be polling the currect value of whatever i am monitoring. So if/when i go over my polling thresholds, thold2.1a just does nothing.

Has anyone else experienced this problem?
royce
Cacti User
Posts: 79
Joined: Wed Dec 29, 2004 7:37 am
Location: Sweden

Post by royce »

Did you forget to the thold -script in your crontab?

Christofer
brain
Posts: 1
Joined: Sun Feb 27, 2005 10:10 pm

Post by brain »

hi

it seems, i have found a bug, perhaps others have met this already. in the mysql table there are some column types defined as INT(50). well, on my debian box, it did not worked for numbers larger than 32 bits (so larger than int(11)). this was bad, because if u try to monitor hard disk usage, then the max value a trigger can have is around 2 gigs. and that's not so much :)

so i changed all int(50) to bigint in the table thold_data, and now it works for me. has anyone already faced this problem?

debian sarge
mysql Ver 12.22 Distrib 4.0.23, for pc-linux-gnu (i386)
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Problem with one threshold - GRAPH DOES NOT EXIST

Post by Pumpi »

Getting following error when receiving a treshold mail with one of my Checkpoint FW-1 devices:

GRAPH DOES NOT EXIST


I have deleted the device from threshold monitoring and start a new threshold for this firewall:

Code: Select all

Notice: Undefined offset: 0 in /usr/local/httpd/htdocs/cacti/thold.php on line 65"
code]Notice: Undefined index: element in /usr/local/httpd/htdocs/cacti/lib/thold-functions.php on line 223
Record Upda[/code]

No image even on the threshold config screen (right click on emty graph:

Code: Select all

The image “https://192.x.x.x/cacti/graph_image.php?local_graph_id=&rra_id=1&graph_start=-32400&graph_height=100&graph_width=300&graph_nolegend=true” cannot be displayed, because it contains errors."
And no Graph ID is shown.


Any ideas ?
KARLOS
Posts: 34
Joined: Thu Jan 20, 2005 7:31 am

Post by KARLOS »

hi,
I have installed Thold 2.1a in Solaris. I don´t get send mail to XXX@yahoo.com. Can help me someone?

Thx
raderjm
Posts: 3
Joined: Thu Feb 10, 2005 2:51 pm
Location: SC

2.1a - Bandwidth Threshold decimal values?

Post by raderjm »

I am extremely excited to give this script a try! I was impressed with the initial release, but I saw someone post earlier that they were unable to have thresholds in decimal values (ie 0.8 ) and was told to round up... how would this work for T1 lines with 1.544 mbit of bandwidth? I would like to be notified when that threshold gets to aprox 1.2 mbit (or around 80%) of total bandwidth... is this possible? If its going to be introduced in a future release I may have to wait.. lol. We have over 80 T1 circuits and way too many frame-relay circuits that I would love to have threshold alarms for. But so far I'd say everyone invloved in this scripts development has done an outstanding job! Keep it up!
Last edited by raderjm on Mon Feb 28, 2005 1:47 pm, edited 2 times in total.
Wasaaaaabi!
pbulteel
Cacti User
Posts: 150
Joined: Fri Sep 05, 2003 9:20 am
Location: London
Contact:

How about multiply by 100?

Post by pbulteel »

Would maybe multiplying by 100 work in your case? Then setting your threshold to a whole number would work.

I haven't used this mod yet so I don't know if it does or not. It's just a possible workaround while the code is fixed.

-P
uname -a
oharel
Cacti User
Posts: 84
Joined: Wed Jan 07, 2004 11:16 am

cannot see Threshold tab!

Post by oharel »

Hi all,

strangely enough, i installed the module, but i dont seem to see it in cacti.
the module inserted its files, backed up the old files, added the tables to mysql etc, but when logging into Cacti, i don't see the Threshold tab or any of the related config.
i set the permissions on the new files as they are for the older files.
I am using cacti 0.8.6c on linux (Slackware 9.1).

anyone can help here?

thanks
Mika
Cacti User
Posts: 64
Joined: Tue Mar 23, 2004 3:01 am

Post by Mika »

royce, thank you for help.
Today I just checked httpd.conf file and noticed the syntax you provided fits exactly there :)
It should be really shame on me :oops:


One more question:
If I run it on a linux machine, should there sendmail be configured localy in order to send email notifications, or I can use existing remote mailserver?


Thanks in advance,
Mika
Locked

Who is online

Users browsing this forum: No registered users and 0 guests