4

My Debian systems have unattended-upgrades installed, which installs security upgrades automatically, once per day. I also have a Nagios check that reports whether upgrades need to be installed.

In this setup, it is normal that this check can report a failing state, but not for longer than 24h. Can I configure Nagios to consider a service as “up” unless it has been failing for more than 24h?

(retry_interval only seems to affect when I get a notification, but I also don't want the front-end to be red during these expected failures.)

  • Would a warning state be acceptable? – Jeff Schaller Nov 4 '17 at 14:51
  • In other words, does the nagios upgrade-check script only return OK and ERROR (or fail, I forget), or could it return warning until hour 25? Which part are you trying to do — change the script behavior or change nagios’ reaction to the existing script? – Jeff Schaller Nov 4 '17 at 14:53
  • I’d like to avoid modifying the existing script, so the latter. – Joachim Breitner Nov 4 '17 at 15:37
  • The script returns a hard failure, then? – Jeff Schaller Nov 4 '17 at 15:49
  • What is this service’s check_interval? – Jeff Schaller Nov 4 '17 at 17:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.