I need to configure Nagios to send a notification that says everything goes well, if there's no problems.
Does this sort of setting exist or is there a plugin for that?
|
I need to configure Nagios to send a notification that says everything goes well, if there's no problems. Does this sort of setting exist or is there a plugin for that?
| |||
feedback
|
This question came from our site for computer enthusiasts and power users.
|
I use the following setup to send an email once per day. This let's me know that all is well with my Nagios server, the email system and the Nagios config.
and in you timeperiods config file:
And the check_all_is_ok command is a simple wrapper around sendmail:
It doesn't check that there haven't been problems in the prior 24 hours, but you could add some grep-ping of the logs as guanta suggested if you need that. You could also accomplish the once a day requirement by setting normal_check_interval to 1440 (24 hours), but I want the check to be run in a specific window each day. | |||
|
feedback
|
|
The solution heavily depends on when you actually want to send out notifications:
Depending on the scenario you should decide for one solution. And always remember: do the simplest thing that could possibly work. | |||
feedback
|
|
If you configured daily log rotation (
Put it into a cron job to run at the end of day, before you go to bed. If you don't, refer to this topic to filter according to the date. | |||
|
feedback
|