Re: enable SMS messaging & alarm thresholds by time
Luca Sironi <[email protected]>
| Newsgroups | gmane.network.cacti.user |
|---|---|
| Message-ID | <CAB4hHgyUwpC1y3ez9WyYYpt0QQNsRQMzbOXEqyTJGEymREmKxA@mail.gmail.com> |
2012/9/5 Avishay Cohen <[email protected]>: > Hi, > I want to enable SMS messaging in addition to e-mail messages . > Is there a plugin that allows this , for example by sending messages to > Http . Do you have an http web page with a form, tied to a sms service? > Also is there a way to set alarm thresholds by time? if you mean turning off all or some alarms for a period (an installation time), you can use the table thold_data example: #!/bin/sh if [ $# -ne 1 ]; then echo -e "\033[32m" echo -e " _ _ " echo -e " | || | _ \033[0m\033[1mUsage\033[32m:" echo -e " | || || | " echo -e " | || || | cacti_alarm.sh on/off" echo -e " \_ || | will enable/disable" echo -e " | _/ the cacti thold alarm" echo -e " | | " echo -e " |_| \n\033[0m" fi STATUS=$1 /usr/bin/mysql -u cactiuser -psomepassword -e "UPDATE thold_data SET thold_enabled = '$1'" cacti_db if [ "$STATUS" = "on" ]; then echo -e "[\033[30;42mcacti alarms enabled\033[0m]"; elif [ "$STATUS" = "off" ]; then echo -e "[\033[30;47mcacti alarms disabled\033[0m]"; fi maybe you can specify just some thresholds identifier and crontab the activation of some alarms. kr Luca -- "tempo" e "voglia" sono sinonimi nel 90% dei casi http://www.sironi.tk ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/