Custom command, works from command line, not from nagios?

Leif J. nagios at ljnet.dk
Sat Jan 8 15:09:19 CET 2011


Den 08-01-2011 14:51, Mister IT Guru skrev:
> On 08/01/2011 13:40, Leif J. wrote:
>> I'm confused in CLI you are using:
>>
>> /usr/lib/nagios/plugins/check_nrpe -H client.localdomain
>> -c get_disk -a localhost C: 70,80
>>
>> but in the define command you are using:
>>
>> $USER1$/get_disk -a  $HOSTADDRESS$ C: 70,80
>>
>>
>>
>> In your define command I would define it as:
>>
>> /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c get_disk -a localhost C: 70,80
>>
>>
>> And then define the command in nrpe on the windows box
>>
> I had no idea that I could do that!? I feel so stupid! Thanks for the tip!

I always take the exactly path to make sure what command it are using.

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
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