check_nagios -- not detecting status log update correctly

frank ratty at they.org
Wed Nov 29 17:58:35 CET 2006


On Wed, 29 Nov 2006, Ben O'Hara wrote:

> On 11/29/06, frank <ratty at they.org> wrote:
>> On Wed, 29 Nov 2006, Ben O'Hara wrote:
>>
>>> On 11/29/06, Terry <td3201 at gmail.com> wrote:
>>>> Thanks for the reply.  Filesystem has 256G available and nagios is
>>>> definitely running and is performing service checks.
>>>>
>>>>
>>>
>>> Try a newer version of the plugins, looks like a problem i had a few
>>> days ago where check_nagios is expecting to use /var/status.log but it
>>> needs to use the status.dat file
>>>
>>> recompile the plugins and it should be fine.
>>>
>>> Ben
>>
>> Actually I'd lean more towards it being a case of "old and busted". When I
>> hit this problem it wasn't a matter of the status.dat location (since "-F
>> /path/to/status.file" is one of the _required_ CLI args). Upgrade to
>> Plugins 1.4.3 and you'll be ok. If you don't want to upgrade all your
>> plugins at once just compile the package and copy the check_nagios binary
>> out instead of running "make install".
>>
>
> Yes, its a required arg but im sure the format of status.dat has
> changed, it used to be status.log and im fairly sure it changed format
> along with its name.
>
> Ben
>> -f

I'm sorry, I misread part of your post. To me, "recompile the plugins" 
meant "re-run make and make install", not install the new version. We were 
both saying the same thing.

I wonder if this fact needs a FAQ because the fix was non-obvious to me. I 
spent far too much time running straces and the like. But I didn't bother 
to read the C code.

-f

>>>> On 11/29/06, Hari Sekhon <hpsekhon at googlemail.com> wrote:
>>>>> check that your filesystem isn't full, this happened to me recently, an
>>>>> incentive to add a filesystem space check which I did!
>>>>>
>>>>> oh yeah, and silly but obvious, check your nagios is running...
>>>>>
>>>>> -h
>>>>>
>>>>> Hari Sekhon
>>>>>
>>>>>
>>>>>
>>>>> Terry wrote:
>>>>>> [root at omautil01 ~]# date
>>>>>> Wed Nov 29 10:03:49 CST 2006
>>>>>>
>>>>>> [root at foobar ~]# ls -l /var/log/nagios/status.dat
>>>>>> -rw-rw-r--  1 nagios nagios 155812 Nov 29 10:03 /var/log/nagios/status.dat
>>>>>>
>>>>>> [root at foobar ~]# /usr/lib/nagios/plugins/check_nagios -e 5 -F
>>>>>> /var/log/nagios/status.dat -C /usr/bin/nagios
>>>>>> Nagios problem: located 1 process, status log updated 1164816202 seconds ago
>>>>>>
>>>>>> Any ideas?
>>>>>>
>>>>>> -------------------------------------------------------------------------
>>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>>>>>> opinions on IT & business topics through brief surveys - and earn cash
>>>>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>>>>> _______________________________________________
>>>>>> 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
>>>>>>
>>>>>>
>>>>>
>>>>> -------------------------------------------------------------------------
>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>>>>> opinions on IT & business topics through brief surveys - and earn cash
>>>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>>
>>>> -------------------------------------------------------------------------
>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>>>> opinions on IT & business topics through brief surveys - and earn cash
>>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>>> _______________________________________________
>>>> 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
>>>>
>>>
>>>
>>>
>>
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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