Hi Marco,

Not sure if this will help but I had a similar problem trying to monitor 
bandwidth on my HP Procurve switch ports.  Command line worked OK, Nagios 
command failed.  The solution was to hard code my password in the command 
definition instead of a variable and take that part out of the service 
definition.

e.g.
Command Definition: $USER1$/check_iftraffic3.pl -h $HOSTADDRESS$ -C $USER3$ -i 
etc
Replace $USER3$ with actual password string.
Service Definition: check_iftraffic3!<pwd>!28!1000
Remove !<pwd> from service definition.

Hope this helps in some way.

Marty





From: Marco Borsani [mailto:m.bors...@it.net]
Sent: Thursday, May 12, 2011 2:49 AM
To: 'Ennis Ibarra - NMCOURTS.GOV'; 'Nagios Users List'
Subject: [Nagios-users] R: smstools3 with nagios

Command file is the same.
Running that command like root or Nagios user manually it is ok

In the Nagios file (does not send sms):
command_line    /usr/local/bin/sendsms 0039$CONTACTPAGER$ "Host:$HOSTALIAS$ is 
$HOSTSTATE$ Type:$NOTIFICATIONTYPE$. $OUTPUT$ Date:$SHORTDATETIME$"

In command line (running OK):
#>   /usr/local/bin/sendsms 0039$CONTACTPAGER$ "Host:$HOSTALIAS$ is $HOSTSTATE$ 
Type:$NOTIFICATIONTYPE$. $OUTPUT$ Date:$SHORTDATETIME$"

Marco

Da: Ennis Ibarra [mailto:en...@nmcourts.gov]
Inviato: mercoledì 11 maggio 2011 18:10
A: Nagios Users List
Oggetto: Re: [Nagios-users] smstools3 with nagios

Check your commands file, see if there you can find a difference, what's the 
directory smstools2/3 is pointing to, what is the command?


_____________________________________________
Supreme Court of New Mexico Ennis Ibarra


----- Original Message -----
From: "Marco Borsani" <m.bors...@it.net>
To: "NAGIOS" <nagios-users@lists.sourceforge.net>
Sent: Wednesday, May 11, 2011 6:12:38 AM
Subject: [Nagios-users] smstools3 with nagios

Hi all

As many people to send sms with Nagios I usually use smstools2 , all is working 
fine.

Now I am testing smstools3, I can send sms using command line (as root and 
Nagios user too), but Nagios program did not send any sms ….
Are there differences in the configuration between smstools2 an smstools3 ?

regards


Marco Borsani
Unix and Monitoring Sysadmin
Technical Operations Dpt.
tel: +39 010 4310115
fax: +39 02 30130311
cell: +39 329 5953944
ITnet Srl
Società con socio unico
Direzione e Coordinamento di …


------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net<mailto:Nagios-users@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
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to