nagios execution of notify commands, debugging the exact command being run

Andreas Ericsson ae at op5.se
Wed Jul 7 12:01:52 CEST 2004


Duncan Robertson wrote:
> Hi,
> 
> We are running nagios and it is all working quite well, except some (but
> not all) sms notifications are not sent (though the log says they are).
> We are using sms_client as the sending mechanism, and it works quite
> well run from command line as nagios user. I suspect it is the generated
> alert string being fed to it is something it doesn't like for one class
> of machines - 
> 
> - but is there a way to turn on the logging so I can see the exact
> command being executed on notify so I can debug it?
> 
> My usual way of solving this (strace) doesnt want to play, for some
> reason strace doesnt want to latch onto the nagios process either. This
> is on redhat 9, nagios 1.2 (from DAG rpm).
> 

For nagios; Run 'strace -f' to have it follow the children spawned by 
fork() instead of exiting with the parent process.
How do you run it with sms_client?


-- 
Sourcerer / Andreas Ericsson
OP5 AB
+46 (0)733 709032
andreas.ericsson at op5.se


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
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