I have had similar problems where the command specs in the nrpe file were
not the same as used from the commandline hence resulting in just the nrpe
version. So, this might be an issue - typo?

Thanks

>>> ./check_nrpe -H host -c check_apcups_bcharge
>
>>> -H $HOSTADDRESS$ - c check_apcups_bcharge
>
> Those aren't the same arguments.
>
> -Matt
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Natxo Asenjo
> Sent: Friday, September 17, 2010 9:39 AM
> To: Opsview Users
> Subject: Re: [opsview-users] custom nrpe check runs fine from cli, web ui
> shows Status Information: NRPE v2.12
>
> of course, it works from the cli from the nagios server, so it's defined
> --
> Groeten,
> J.Asenjo
>
>
>
> On Fri, Sep 17, 2010 at 3:42 PM,  <[email protected]> wrote:
>> You need to have the command specified in /usr/local/nagios/etc/nrpe.cfg
>> (or ../local) and a restart of the opsview-agent service ?
>>
>> hth
>> paul
>>
>>
>>> hi,
>>>
>>> I have a server with a cheap apc ups unit. No network card on it, just
>>> a usb cable. I have a script that parses the output of /sbin/apcaccess
>>> to get some info. If I run the script locally, I get the output I
>>> want. If I run it from the opsview server and the check_nrpe plugin, I
>>> get the output I want:
>>>
>>> ./check_nrpe -H host -c check_apcups_bcharge
>>> OK - Battery Charge: 100.0%
>>>
>>> I created a service check in the web ui using the check_npre plugin
>>> and as arguments:
>>>
>>> -H $HOSTADDRESS$ - c check_apcups_bcharge
>>>
>>> and when it runs, the web ui shows Status Information:        NRPE
>>> v2.12.
>>>
>>> I am puzzled. Any ideas as to what I am doing wrong?
>>>
>>> TIA
>>> --
>>> natxo
>>> _______________________________________________
>>> Opsview-users mailing list
>>> [email protected]
>>> http://lists.opsview.org/lists/listinfo/opsview-users
>>>
>>
>>
>> _______________________________________________
>> Opsview-users mailing list
>> [email protected]
>> http://lists.opsview.org/lists/listinfo/opsview-users
>>
> _______________________________________________
> Opsview-users mailing list
> [email protected]
> http://lists.opsview.org/lists/listinfo/opsview-users
> _______________________________________________
> Opsview-users mailing list
> [email protected]
> http://lists.opsview.org/lists/listinfo/opsview-users
>


_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to