sms-pager command is not executed

Testuser SST fatcharly at gmx.de
Tue May 24 17:21:07 CEST 2011


Hi,

the timestamp of the file >/var/log/nagiosSMSneu.log changes every time the command is called. So it is executed, but is there any way to see what exactly happens while the command gets executed ? debug ? logfile ?
 
Any suggestions are welcome

Kind Regards

fatcharly


-------- Original-Nachricht --------
> Datum: Tue, 24 May 2011 12:16:29 +0200
> Von: "Testuser  SST" <fatcharly at gmx.de>
> An: " nagios-list" <nagios-users at lists.sourceforge.net>
> Betreff: [Nagios-users] sms-pager command is not executed

> Hi,
> 
> I´m using a nagios 3.0.3 with yaps as sms-solution. No problem with that,
> but now I´m trying to use a sms-gateway with lynx as tool. My command
> works with no problem from the bash, but it won´t work when it´s executed by
> nagios. Here is a little output from the debug-file(level 32). I`m quite
> sure that no http-request is beeing processed- I´ve checked it with
> tcpdump. No request was leaving the server.
> 
> [1306227749.291843] [032.2] [pid=6040] Adding contact 'sst2test' to
> notification list.
> [1306227749.291870] [032.2] [pid=6040] ** Attempting to notifying contact
> 'sst2test'...
> [1306227749.291882] [032.2] [pid=6040] ** Checking service notification
> viability for contact 'sst2test'...
> [1306227749.291899] [032.2] [pid=6040] ** Service notification viability
> for contact 'sst2test' PASSED.
> [1306227749.291911] [032.2] [pid=6040] ** Notifying contact 'sst2test'
> [1306227749.291935] [032.2] [pid=6040] Raw notification command:
> /usr/bin/lynx --dump
> "http://smsserver.mindmatics.com/messagegateway/outbound/sms?Version=3.0&cid=XXXX&password=XXXXXXXXX&to=$CONTACTPAGER$&from=demeter&content=$NOTIFICATIONTYPE$:
> $HOSTNAME$: $SERVICEDESC$ is $SERVICESTATE$
> ($SERVICEOUTPUT$)&targetformat=COMMON.1.1" >/var/log/nagiosSMSneu.log
> [1306227749.291978] [032.2] [pid=6040] Processed notification command:
> /usr/bin/lynx --dump
> "http://smsserver.mindmatics.com/messagegateway/outbound/sms?Version=3.0&cid=XXXX&password=XXXXXXXXXXX&to=0049172XXXXXXX&from=demeter&content=PROBLEM:
> paulaportalwww: HTTP is CRITICAL (Connection
> refused)&targetformat=COMMON.1.1" >/var/log/nagiosSMSneu.log
> 
> And there is also no msg in /var/log/nagiosSMSneu.log, but I get when I
> use the "Processed notification command" on a bash- it works fine.
> 
> Any suggestions are welcome
> 
> Kind Regards
> 
> fatcharly
> 
>  
> -- 
> NEU: FreePhone - kostenlos mobil telefonieren!			
> Jetzt informieren: http://www.gmx.net/de/go/freephone
> 
> ------------------------------------------------------------------------------
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery, 
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now. 
> http://p.sf.net/sfu/quest-d2dcopy1
> _______________________________________________
> 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

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
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