I wrote a new script to send out alerts when someone is logged into a system. I copied a working test and just adjusted my check_nrpe argument, however the notifications are not going out. Could it be the script? Below is the script - looks ok, Nagios shows it has a warning but wont send notifications. Also my mobile Nagios app also isnt picking up the warnings.
If ngaios is displaying the warning, then the issue is most likely not with your script, but with your nagios object configurations. Could you post the command definition, service definition, and host definition? (in code wraps)
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.
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.