Welcome to Pandora FMS Community › Forums › Community support › [Solved] Command execution within an alert
-
[Solved] Command execution within an alert
Posted by JPSelter on October 26, 2009 at 13:26I tried to create a simple alert. When a machine doesn´t respond to an icmp ping anymore I want to get an email about this event. So I created an alert, looked into the documentation and was wondering where the “command” field is located. I can see “alert type” and “description”, but not “command”. How can I tell the alert to execute a script file?
I chose to use the EXPECT script, it is working. I also created a script with the content the documentation gave me. But it doesn´t say how the file should be named. Is it named “smtp”? What about the original “smtp” command? I already did “chmod 700 /root/smtp” but when test-executing “./smtp” it says “permission denied”, even logged in as root. What did I do wrong here?
Sancho replied 15 years, 4 months ago 2 Members · 4 Replies -
4 Replies
-
-
::
Ok, I´m nearly there… I found the place where to put the command, also the script (I called it /var/www/util/send_alert) is working from command line.
But the email is not sent and I don´t know why. I think it has something to do with execute-permission. Where can I see what user is running pandora or the web-console? What command can I use to give permission? I already did “chown 755 /var/www/util/send_alert” but the email is still not sent.
(suggestion: insert a test-button under “manage alerts” for sending alerts for tests)
-
-