From: carole v. <ve...@ci...> - 2004-09-30 14:22:44
|
My 'check_nrpe_nossl' calls check_nrpe compiled without ssl support. My scripts returns one line. Here the result from command line on HPUX=20 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=20 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=20 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=20 accept command arguments from clients! This command from nagios runs well now since i restarted nrpe daemon=20 manually this morning: $ ./check_nrpe -H telline.cict.fr -t 60 -p5666 -n -c check_oracle_databas= es 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 -----=20 >From: "carole verdon" <ve...@ci...> >To: "Frederik Vanhee" <fre...@pe...> >Cc: "Nagios Users" <nag...@li...> >Sent: Thursday, September 30, 2004 2:11 PM >Subject: Re: [Nagios-users] Pb with the start script of nrpe > > > =20 > >>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 the= m. >>$ 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: >> >> =20 >> >>>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= , >>> =20 >>> >but > =20 > >>>when I run it as a service, check_nrpe on the nagios server returns th= e >>>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 -----=20 >>>From: "carole verdon" <ve...@ci...> >>>To: "Nagios Users" <nag...@li...> >>>Sent: Thursday, September 30, 2004 12:04 PM >>>Subject: [Nagios-users] Pb with the start script of nrpe >>> >>> >>> >>> >>> =20 >>> >>>>Hi, >>>> >>>>On two HPUX Server, i add two shell scripts that i wrote to check pri= nt >>>>queue and oracle databases. I check also others services as space dis= k, >>>>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: Una= ble >>>>to read output'. >>>> >>>>Why nrpe don't execute my scripts? >>>> >>>>Thanks for advance. >>>> >>>>Carole. >>>> >>>>N.B: nagios 1.2, nrpe 2.0. >>>> >>>> >>>> >>>> >>>> =20 >>>> >>> >>>------------------------------------------------------- >>>This SF.net email is sponsored by: IT Product Guide on ITManagersJourn= al >>>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 >>> =20 >>> >more > =20 > >>>http://productguide.itmanagersjournal.com/guidepromo.tmpl >>>_______________________________________________ >>>Nagios-users mailing list >>>Nag...@li... >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>::: Please include Nagios version, plugin version (-v) and OS when >>> =20 >>> >reporting any issue. > =20 > >>>::: Messages without supporting info will risk being sent to /dev/null >>> >>> >>> >>> >>> =20 >>> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: IT Product Guide on ITManagersJourna= l >>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 >> =20 >> >more > =20 > >>http://productguide.itmanagersjournal.com/guidepromo.tmpl >>_______________________________________________ >>Nagios-users mailing list >>Nag...@li... >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS when >> =20 >> >reporting any issue. > =20 > >>::: Messages without supporting info will risk being sent to /dev/null >> =20 >> > > > =20 > --=20 ********************************** VERDON Carole Ing=E9nieur Syst=E8me CICT - Universit=E9 Paul Sabatier 118, route de Narbonne 31062 Toulouse Cedex T=E9l.: 05.61.36.60.44 Fax: 05.61.52.14.58 Mail: ve...@ci... **********************************=09 |