Re: [Nagios-users] Rép. : Re: [Nagios-users] check_load weird behavior in French config

Serveur-Faucon Surveillance SrvFaucon at cslaval.qc.ca
Wed Mar 16 22:34:45 CET 2005


Well... I try your solution, and played a bit with it, but it does not work. It was a pretty good idear tough.

Nevertheless, I got some pretty cool information about Linux boot.

The first test I did is to start nrpe 5 minutes after the boot with the "at" command. [Failure]

After that I try to start nrpe last in the startup sequence. [Failure]
# ls /etc/rc.d/rc#.d/ -l
lrwxrwxrwx  1 root root 11 mar  1 11:41 S98local -> ../rc.local*
lrwxrwxrwx  1 root root 14 mar  3 13:41 S99nrpe -> ../init.d/nrpe*

After that I try your solution (at the end of this message).

I got some pretty good information on Linux boot and learned a lot.

LC_CTYPE and all # locale can't seems to be changed during a bash file execution.
I looked at the locale before any change, during the change and after the changes. Nothing changes.
(even with manual entries such has LC_CTYPE=POXIS, or LC_ALL (witch does not work))

When I log on the machine, everything (LC_CTYPE, LANG, LC_TIME, etc) is "fr_CA" but during boot time it is "POSIX".

If you have another idear, tell me, I'll try it :)





---------------------------------------------------
Alexandre Racine - www.gardienvirtuel.com
Montréal, Québec, Canada

>>> Andreas Ericsson <ae at op5.se> 2005-02-18 17:00:54 >>>
Serveur-Faucon Surveillance wrote:
> I know about the ". or ," issue, and I have compensate with " " " and
> it does work great.
> 
> root]# /usr/local/nagios/libexec/check_load -w "20,0","15,0","10,0"
> -c "35,0","30,0","25,0" OK - load average: 0,00,
> 0,00,0,00|load1=0;20;35;0 load5=0;15;30;0 load15=0;10;25;0
> 
> But since, I made more tests, when starting in the startup
> (chkconfig) the error occurs. When I log in and restart the service,
> the error disapear. If I start the service later (with at) in the
> service startup, the error occurs.
> 
> So I would somehow conclude that there is a difference between
> starting a service in the chkconfig and at the console.
> 
> Can you think of another way to bypass this situation? :) Mabe I
> could log in the nagios user and make him execute nrpe?
> 

locale > locale.save
LC_ALL=POSIX
start nrpe
eval `cat locale.save`

or put nrpe last in startup sequence so as to emulate the re-start 
environment as close as possible.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se 
OP5 AB                             www.op5.se 
Lead Developer



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
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