Page 1 of 1

Disable all notifications

Posted: Wed Mar 02, 2011 11:35 am
by DPetit
Nagios 3.2.1

I know that you can disable all notifications for a system by going into Process info in the UI and disabling it there, is that action logged to a file anywhere?

Re: Disable all notifications

Posted: Wed Mar 02, 2011 11:43 am
by tonyyarusso
Yes, in the nagios.log file - it will look like this: "[1299084152] EXTERNAL COMMAND: DISABLE_NOTIFICATIONS;1299084151".

Re: Disable all notifications

Posted: Wed Mar 02, 2011 1:33 pm
by DPetit
Is there some type of logging level that you would need to be at to see that? I do not see anything that matches that description.

Re: Disable all notifications

Posted: Fri Mar 04, 2011 9:25 am
by DPetit
As a work around, it looks like in the access.log when you disable notifications, it shows an entry there for "cmd_typ=11" that seems to correspond to a user disabling notifications. cmd_typ=12 seems to be for enabling notifications after they have been disabled.

Re: Disable all notifications

Posted: Fri Mar 04, 2011 10:29 am
by rdedon
This would be the path:

Code: Select all

cd /usr/local/nagios/var

Re: Disable all notifications

Posted: Mon Mar 07, 2011 8:58 am
by DPetit
there are no entries that match that format when I know that I have disabled alerts within the logs time frame.

(Also, this message was moved from another forum, could it be placed inside the Core section as that is what it's regarding?)