Re: [Nagios-users] Custom command, works from command line, not from nagios?

2011-01-13 Thread Clyde Jones
Mister IT Guru wrote: > I run this command from the cli > > [root@host ~]# /usr/lib/nagios/plugins/check_nrpe -H client.localdomain -c get_disk -a localhost C: 70,80 > > And I get the response above. I defined the command below, > > define command{ > comman

Re: [Nagios-users] Custom command, works from command line, not from nagios? [SOLVED]

2011-01-10 Thread Mister IT Guru
On 08/01/2011 14:09, Leif J. wrote: > 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 yo

Re: [Nagios-users] Custom command, works from command line, not from nagios?

2011-01-08 Thread Leif J.
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 $HOST

Re: [Nagios-users] Custom command, works from command line, not from nagios?

2011-01-08 Thread Mister IT Guru
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 wou

Re: [Nagios-users] Custom command, works from command line, not from nagios?

2011-01-08 Thread Leif J.
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 -

Re: [Nagios-users] Custom command

2006-02-02 Thread Jim Pye
Robert, One thing I discovered with the script is that it uses the alarm() functionality of the Linux kernel to help catch communication time outs. Both Windows (and NetWare) do not support this functionality in their PERL implementations. The script does account for Windows (I had to modify it fo

RE: [Nagios-users] Custom command

2006-02-02 Thread Tedman Eng
Are you testing from commandline from the context of the nagios user? > -Original Message- > From: Robert Fitzpatrick [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 02, 2006 7:22 AM > To: Nagios > Subject: [Nagios-users] Custom command > > > Thanks to Jim here on the list, I have d

Re: [Nagios-users] Custom command

2006-02-02 Thread Robert Fitzpatrick
On Thu, 2006-02-02 at 17:44 +0200, Assaf Flatto wrote: > Have you tried placing the script under the libexec directory? > > I had the same issue some time ago and the script only worked when it was in > the > libexec directory even though the absolute path was set. Thanks, but still same error

Re: [Nagios-users] Custom command

2006-02-02 Thread Assaf Flatto
Have you tried placing the script under the libexec directory? I had the same issue some time ago and the script only worked when it was in the libexec directory even though the absolute path was set. Assaf Robert Fitzpatrick wrote: Thanks to Jim here on the list, I have defined a command t