Nagios doesn't trigger command

Libor Jelinek ljelinek at virtage.com
Wed Feb 2 16:30:24 CET 2011


OMG! I solved it! So solution for next generation:

* How to see actual ouput of processed command (directive command_line)? *
In nagios.cfg:
a) set debug_level=<desired level of debugging>
b) set debug_verbosity=2
c) see "Raw notification command" and "Processed notification command"
in /var/log/nagios.debug

This output shows me that there is probably bug in Nagios during
processing comments for macros in resource.cfg. ; and # charaters are
not correctly parsed like comments. It's not stated anywhere that in
resource.cfg and/or for macros there's some exception how to express
comments.

$USER5$=someValue           ; This will not be parsed like comment
$USER6$=otherValue           # Also this will not be parsed like comment

So I will file the bug.

Libor


2011/2/2 Giles Coochey <giles at coochey.net>:
> On 02/02/2011 15:25, Libor Jelinek wrote:
>>
>> But no command is executed! I tried to create replace default
>> notify-host-by-email's command_line to the very basic command 'echo
>> test>  /home/libor/notif_works' to test if notification is triggered.
>>
> Usually this is down to permissions. Does the nagios user, or the user that
> nagios runs as have write access to the /home/libor directory?
>
> --
> Best Regards,
>
> Giles Coochey
> NetSecSpec Ltd
> NL T-Systems Mobile: +31 681 265 086
> NL Mobile: +31 626 508 131
> GIB Mobile: +350 5401 6693
> Email/MSN/Live Messenger: giles at coochey.net
> Skype: gilescoochey
>
>
>
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> 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
>

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
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