Viewing defined notifications for a specific contact/contact-group

Justin T Pryzby justinp at norchemlab.com
Tue Nov 6 23:38:38 CET 2012


For starters, you can look at /var/cache/nagios3/objects.cache, which
doesn't use templates or other "object tricks", so has all that
expanded/substituted.

You can parse that pretty easily with awk 'BEGIN{RS=""}' plus
shell/tools.

Justin

On Tue, Nov 06, 2012 at 09:13:29AM +0000, Steven Carr wrote:
> Hi list,
> 
> Does anyone know of a way of or have a script that can print a list of
> all defined notifications that could be sent for a particular
> contact/contact-group?
> 
> I want to list the notifications for a contact/contact-group so that I
> can see what they will be notified about so I can add anything that is
> missing, but I don't want to have to check each host/service
> individually.
> 
> Thanks
> 
> Steve
> 
> ------------------------------------------------------------------------------
> LogMeIn Central: Instant, anywhere, Remote PC access and management.
> Stay in control, update software, and manage PCs from one command center
> Diagnose problems and improve visibility into emerging IT issues
> Automate, monitor and manage. Do more in less time with Central
> http://p.sf.net/sfu/logmein12331_d2d
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list