Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
#!/bin/bash ---> this thing worked and i got the email. However when i setup my actual notify-service-by-email , i did get the email but it was blank -no information at all. I have setup like that;
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Okay guys, i have modified the templates and contact and after that its not working at all. I am pasting my command.cfg, contact.cfg, and template.cfg.
I have not changed anything in the script and its working from command line.
define contact{
contact_name Recovery-phone
use generic-contact
alias Phone test
email [email protected]
}
#define contact{
contact_name Recovery-email
use generic-contact-email-test
alias Recovery email test
email [email protected]
}
define contactgroup{
contactgroup_name admins
alias Nagios Administrators
members Recovery-email, Recovery-phone
}
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
We did it guys...Working as expected, getting only alert calls and recovery emails. Awesome.....
quick question, can we run notify by host with same script ? I know we can do with separate script and change the macros but I was curious to run from the same script but how ???