Le 09/03/2009 à 12:24:36-0400, Allan Clark a écrit
> Is there something in your boot process, such as seeding a random-number-seed
> or creating an environment variable that happens after nrpe is started?

No, or if they exist I don't known where. 

> 
> I assume you are starting nrpe from a /etc/init.d/nrpe script.

Almost (/usr/local/etc/rc.d/nrpe2 restart), it's bsd starting script...

> 
> I would recommend that when you start nrpe, edit the startup script to store
> the environment to a file, and get an example status from the raid card.

When you say «environment» you might «env» ? 

> 
> The two results (the reboot of the server, and the later restart of nrpe that
> causes it to work), the two dumps of environment and raid status might give 
> you
> an idea of what's changing between the two.

OK. I'm going to try that. 

> 
> Also, if you check your changes with a "diff -w" rather than a differing
> checksum, you should still get the same "if it's different, show a result 
> code"
> but piping the diff to a temp file might help you see what's different.  The
> obvious drawback is that you need to keep a text copy of the last result until
> you get this part working.  I can understand if you don't want to keep a text
> dump around for the long-term -- for security and spamming-my-filesystem
> reasons -- but for testing, it might help.
> 

Thanks for you help.

Regards.

-- 
Albert SHIH
SIO batiment 15
Observatoire de Paris Meudon
5 Place Jules Janssen
92195 Meudon Cedex
Heure local/Local time:
Mar 10 mar 2009 12:51:06 CET

------------------------------------------------------------------------------
_______________________________________________
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