nsclient++ and nrpe commands

Marco Borsani m.borsani at it.net
Fri Oct 2 16:58:29 CEST 2009


Hi all

I use nsclient++ with standard commands via check_nt, all is ok.

Now I need to run some commands/plug-in (like checl_openmanage.exe), but I
don't find the correct sintax.

Right now I prepare a command inside NSC.ini file like these:
command[nsc_openmanage]=c:\nagios\check_openmanage.exe
nsc_open=scripts\check_openmanage.exe -v

When I try to call it from nagios server with: ./check_nrpe -H IPADDRESS -c
nsc_openmanage
I receive following error: CHECK_NRPE: Socket timeout after 10 seconds.

NSClient++ works correctly with :
check_nt -H IPADDRESS -v xxxxxxxx
check_nrpe -H IPADDRESS -c CheckCPU -a warn=80 crit=90 time=20m time=10s
time=4

My versions are:
Nsclient++ = 0.2.7 2007-03-06 
Check_nrpe = 2.7.1

May you show me any NSC.ini files ?

Any idea?

Thanks
Marco
-----Messaggio originale-----
Da: nadia kheffache [mailto:nadiakheffache at yahoo.fr] 
Inviato: venerdì 2 ottobre 2009 9.50
A: nagios-users at lists.sourceforge.net
Oggetto: [Nagios-users] error check_snmp for UPS

Hi,

Any one can help me to resolve my probleme please?
i have the same error when i execute chack_snmp to monitor UPS-onduleur and
sensorIP (humidity and temperature server room).

./check_snmp -H UPS-onduleur1 -C public - o
.1.3.6.1.4.1.4555.1.1.1.1.6.2.1.1.17 -w 185:210 -c 286:999  -l '\Input
Voltage\' -u '\Volts\'

\Input Voltage\ probleme - No data receved from host (Pas de données reçues
de l'hôte
Commande: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] UPS-onduleur1:161

Thank you


> Can you help me please? i have the
> same error when i execute this commande:
> 
> command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o
> .1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0 -w $ARG2$:$ARG1$ -c
> $ARG4$:$ARG3$ -C $ARG5$ -l
> Temperature -u °C
> 
> ./check_snmp -H sensorIP -v 1 -o
> .1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0 -w 25:29 -c 30:99 -C
> public -l Temperature -u °C
> 
> Temperature problème - Pas de donnèes reçues de l'hôte
> Commande: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv]
> 1:161  .1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0
> 
> to monitore the temperature in the local server with
> sensorIP, snmpwalk is ok,
> 
> i have the same error with the UPS-onduleur
> 
> thank you
> 
> 
> --- En date de : Jeu 1.10.09, frank.bourdeau at dga.defense.gouv.fr
> <frank.bourdeau at dga.defense.gouv.fr>
> a écrit :
> 
> > De: frank.bourdeau at dga.defense.gouv.fr
> <frank.bourdeau at dga.defense.gouv.fr>
> > Objet: RE [spam?] [Nagios-users] error check_snmp for
> UPS
> > À: "nadia kheffache" <nadiakheffache at yahoo.fr>
> > Cc: nagios-users at lists.sourceforge.net
> > Date: Jeudi 1 Octobre 2009, 10h37
> > Hi,
> > 
> > Have you test with snmpwalk to see if you UPS
> onduleur
> > respond ? Is the 
> > UPS mib installed on the nagios server ?
> > 
> > Frank
> > 
> > email: frank.bourdeau at dga.defense.gouv.fr
> > fonction: administrateur systèmes et réseaux
> > tel: 0241936560 
> > fax: 0241936681
> > ETAS - BP 60036 - route de Laval - 49245 AVRILLE
> CEDEX
> > [ENVOYE PAR INTERNET]
> > 
> > 
> > 
> > nadia kheffache <nadiakheffache at yahoo.fr>
> > 
> > 01/10/2009 10:16
> > 
> > A
> > nagios-users at lists.sourceforge.net
> > cc
> > 
> > Objet
> > [spam?] [Nagios-users] error check_snmp for UPS
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Hi,
> > 
> > I wont to monitor an ups (onduleur),i use a basic
> nagios
> > plugin_snmp.
> > 
> > but i have these error, i can't get any information
> about
> > this ups.
> > 
> > can you help me please?
> > 
> > thank you
> > 
> > [nagios at nagios01 libexec]$ ./check_snmp -H
> UPS-onduleur1 -C
> > public - o 
> > .1.3.6.1.4.1.4555.1.1.1.1.6.2.1.1.17 .w 185:210 -c
> > 286:999  -l '\Input 
> > Voltage\' -u '\Volts\'
> > 
> > \Input Voltage\ problème - Pas de données reçues
> de
> > l'hôte
> > 
> > Commande: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1
> [authpriv]
> > 
> > UPS-onduleur1:161
> > 
> > 
> > 
> > Nadia
> > 
> > 
>> > 
> >
>
----------------------------------------------------------------------------
--
> > Come build with us! The BlackBerry® Developer
> > Conference in SF, CA
> > is the only developer event you need to attend this
> year.
> > Jumpstart your
> > developing skills, take BlackBerry mobile applications
> to
> > market and stay 
> > ahead of the curve. Join us from November 9-12, 2009.
> > Register 
> > now!
> > http://p.sf.net/sfu/devconf
> > _______________________________________________
> > 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
> > 
> > 
> > 
> 
> 
>       
> 
>
----------------------------------------------------------------------------
--
> Come build with us! The BlackBerry® Developer
> Conference in SF, CA
> is the only developer event you need to attend this year.
> Jumpstart your
> developing skills, take BlackBerry mobile applications to
> market and stay 
> ahead of the curve. Join us from November 9-12, 2009.
> Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> 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
> 


      

----------------------------------------------------------------------------
--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
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


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
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