Pb with the start script of nrpe

carole verdon verdon at cict.fr
Thu Sep 30 16:22:38 CEST 2004


My 'check_nrpe_nossl' calls check_nrpe compiled without ssl support.

My scripts returns one line. Here the result from command line on HPUX 
server:
$ ./check_oracle_databases.sh
all databases OK
$ ./check_printqueue.sh
OK - no print requests on standby

In /var/adm/syslog/syslog.log, nothing appears:
$ more /var/adm/syslog/syslog.log | grep nrpe
Sep 30 09:03:53 telline nrpe[1791]: Starting up daemon
Sep 30 09:03:53 telline nrpe[1791]: Warning: Daemon is configured to 
accept command arguments from clients!
Sep 30 10:08:07 telline nrpe[3231]: Starting up daemon
Sep 30 10:08:07 telline nrpe[3231]: Warning: Daemon is configured to 
accept command arguments from clients!
Sep 30 11:04:52 telline nrpe[5477]: Starting up daemon
Sep 30 11:04:52 telline nrpe[5477]: Warning: Daemon is configured to 
accept command arguments from clients!

This command from nagios runs well now since i restarted nrpe daemon 
manually this morning:
$ ./check_nrpe -H telline.cict.fr -t 60 -p5666 -n -c check_oracle_databases
all databases OK


Frederik Vanhee wrote:

>Carole,
>
>I presume your 'check_nrpe_nossl' calls check_nrpe with the -n option ?
>
>Do your scripts output one line of text when you execute them locally on the
>hp-ux servers ?
>
>What's in /var/adm/syslog/syslog.log when you start nrpe
>(/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d) ?
>
>The command that I would run is : ./check_nrpe -H hostname -t 60 -p
>5666 -n -c check_oracle_databases
>
>Frederik
>
>
>----- Original Message ----- 
>From: "carole verdon" <verdon at cict.fr>
>To: "Frederik Vanhee" <frederik.vanhee at perso.be>
>Cc: "Nagios Users" <nagios-users at lists.sourceforge.net>
>Sent: Thursday, September 30, 2004 2:11 PM
>Subject: Re: [Nagios-users] Pb with the start script of nrpe
>
>
>  
>
>>When i try to execute from the command line, it says that:
>>
>>$ ./check_nrpe_nossl -H telline.cict.fr -c check_oracle_databases
>>NRPE: Unable to read output
>>$./check_nrpe_nossl -H telline.cict.fr -c check_printqueue
>>NRPE: Unable to read output
>>
>>When i restart manually nrpe daemon( /usr/local/nagios/bin/nrpe -c
>>/usr/local/nagios/etc/nrpe.cfg -d ), all was OK.
>>
>>$./check_nrpe_nossl -H telline.cict.fr -c check_oracle_databases
>>all databases OK
>>$ ./check_nrpe_nossl -H telline.cict.fr -c check_printqueue
>>OK - no print requests on standby
>>
>>NRPE daemon  runs under nagios user.
>>ps -ef | grep nrpe
>>  nagios 10680 10665  1 14:02:03 pts/0     0:00 grep nrpe
>>  nagios  5477     1  0 11:04:52 ?         0:00
>>/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg
>>
>>My scripts own to nagios user and other have permissions to execute them.
>>$ ls -al check_oracle*
>>-rwxr-xr-x   1 nagios     sysadmin      7640 Jun  9 16:15 check_oracle
>>-rwxr-xr-x   1 nagios     sysadmin      2387 Sep 30 11:06
>>check_oracle_databases.sh
>>$ ls -al check_print*
>>-rwxr-xr-x   1 nagios     sysadmin      1274 Jul 20 09:24
>>check_printqueue.sh
>>
>>Other ideas?
>>
>>Thanks for your help.
>>
>>Carole.
>>
>>Frederik Vanhee wrote:
>>
>>    
>>
>>>Hi Carole,
>>>
>>>what does check_nrpe say when you run it from the command line ?
>>>
>>>Does nrpe run as a daemon or as a service on the HP-UX server ?
>>>
>>>If have nrpe 2.0 running as a daemon on hp-ux 11i and everything is ok,
>>>      
>>>
>but
>  
>
>>>when I run it as a service, check_nrpe on the nagios server returns the
>>>following message :
>>>
>>>"CHECK_NRPE: Response packet had invalid CRC32."
>>>
>>>When your system is restarting, as which user is the nrpe started ?
>>>Maybe the user as which nrpe runs doesn't have the right access rights to
>>>execute your scripts ?
>>>
>>>Frederik
>>>
>>>----- Original Message ----- 
>>>From: "carole verdon" <verdon at cict.fr>
>>>To: "Nagios Users" <nagios-users at lists.sourceforge.net>
>>>Sent: Thursday, September 30, 2004 12:04 PM
>>>Subject: [Nagios-users] Pb with the start script of nrpe
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>Hi,
>>>>
>>>>On two HPUX Server, i add two shell scripts that i wrote to check print
>>>>queue and oracle databases. I check also others services as space disk,
>>>>load ...
>>>>When the host is down and it restart, the restart script of nrpe runs
>>>>but when nagios check services, all checks are State OK except those for
>>>>oracle and print queue. In nagios interface, it appears as 'NRPE: Unable
>>>>to read output'.
>>>>
>>>>Why nrpe don't execute my scripts?
>>>>
>>>>Thanks for advance.
>>>>
>>>>Carole.
>>>>
>>>>N.B: nagios 1.2, nrpe 2.0.
>>>>
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>
>>>-------------------------------------------------------
>>>This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
>>>Use IT products in your business? Tell us what you think of them. Give us
>>>Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
>>>      
>>>
>more
>  
>
>>>http://productguide.itmanagersjournal.com/guidepromo.tmpl
>>>_______________________________________________
>>>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
>>>
>>>
>>>
>>>
>>>      
>>>
>>
>>-------------------------------------------------------
>>This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
>>Use IT products in your business? Tell us what you think of them. Give us
>>Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
>>    
>>
>more
>  
>
>>http://productguide.itmanagersjournal.com/guidepromo.tmpl
>>_______________________________________________
>>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
>>    
>>
>
>
>  
>

-- 
**********************************
VERDON Carole
Ingénieur Système
CICT - Université Paul Sabatier
118, route de Narbonne
31062 Toulouse Cedex
Tél.: 05.61.36.60.44
Fax: 05.61.52.14.58
Mail: verdon at cict.fr
**********************************	



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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