Re: [Nagios-users] Service check did not exit properly

2011-03-30 Thread JS
On 29.3.2011 14:37, Assaf Flatto wrote: > First thing - try running the script as the nagios user , this might > give you more information about why it fails . > > if memory serves me right , this script is calling some system calls > that run in a root privileges space so you may need to sudo the

Re: [Nagios-users] Service check did not exit properly

2011-03-29 Thread Ricardo Maraschini
hello, i'm not sure about it, but maybe you can try to configure your check command to put the error messages into a file. you could configure your check command to something like this: /usr/local/nagios/libexec/check_email_delivery 2>>/tmp/check_email_delivery.errors after the check happen

Re: [Nagios-users] Service check did not exit properly

2011-03-29 Thread Assaf Flatto
JS wrote: > On 29.3.2011 13:01, Assaf Flatto wrote: > >> JS wrote: >> >>> When I run a certain service check on my server via the shell it works >>> fine. >>> >>> However after adding it to Nagios, using exactly the same parameters, >>> it failes and the message "Service check did not exit

Re: [Nagios-users] Service check did not exit properly

2011-03-29 Thread JS
On 29.3.2011 13:01, Assaf Flatto wrote: > JS wrote: >> >> When I run a certain service check on my server via the shell it works >> fine. >> >> However after adding it to Nagios, using exactly the same parameters, >> it failes and the message "Service check did not exit properly" appears >> in my N

Re: [Nagios-users] Service check did not exit properly

2011-03-29 Thread JS
Hmm, on the script? It's all owned by root currently, everything else works fine, owned by root: root@nagios:~# cd /usr/local/nagios/libexec/ root@nagios:/usr/local/nagios/libexec# ls -la check_email* -rwxr-xr-x 1 root root 38883 2011-03-25 18:00 check_email_delivery root@nagios:/usr/local/nagios/

Re: [Nagios-users] Service check did not exit properly

2011-03-29 Thread Assaf Flatto
JS wrote: > Hi. > > When I run a certain service check on my server via the shell it works > fine. > > However after adding it to Nagios, using exactly the same parameters, > it failes and the message "Service check did not exit properly" appears > in my Nagios interface. > > How can I debug this?

Re: [Nagios-users] Service check did not exit properly

2011-03-29 Thread Andre Kruger
Did you set the user and group permissions correctly? >>> JS 2011/03/29 14:29 >>> Hi. When I run a certain service check on my server via the shell it works fine. However after adding it to Nagios, using exactly the same parameters, it failes and the message "Service check did not exit properly

[Nagios-users] Service check did not exit properly

2011-03-29 Thread JS
Hi. When I run a certain service check on my server via the shell it works fine. However after adding it to Nagios, using exactly the same parameters, it failes and the message "Service check did not exit properly" appears in my Nagios interface. How can I debug this? I've enabled debug logging

Re: [Nagios-users] "Service check did not exit properly"

2009-04-15 Thread Marc Powell
On Apr 15, 2009, at 1:48 PM, Livio Zanol Puppim wrote: > Just to inform, that I've had this problem... After googling it, > couldn't find an answer. Only a similar problem in the past > > Well, > this has happend to me with a perl script. the problem was a > "Switch" statement. > I was using

[Nagios-users] "Service check did not exit properly"

2009-04-15 Thread Livio Zanol Puppim
Just to inform, that I've had this problem... After googling it, couldn't find an answer. Only a similar problem in the past Well, this has happend to me with a perl script. the problem was a "Switch" statement. I was using "use Switch;", and the scripts works, as root and as nagios user, but does

[Nagios-users] "Service check did not exit properly"

2005-11-08 Thread Joshua Coombs
Near as I can tell from the src, nagios logs a failed service check with "Service check did not exit properly" when it can't execute the service check plugin. I keep getting this failure at random, 'bout once a day using check_snmp_if and I can't discern why. I first thought it might be a time