Search found 6 matches

by yanivhs
Thu Oct 31, 2013 2:13 am
Forum: Open Source Nagios Projects
Topic: Run netstat using NRPE failed
Replies: 11
Views: 7191

Re: Run netstat using NRPE failed

Yes, it was the selinux... :oops:

Currently it is only working using the netstat file I've putted in the plugins directory, but i can change that now.

Thank you for your help.
Yaniv
by yanivhs
Wed Oct 30, 2013 7:01 am
Forum: Open Source Nagios Projects
Topic: Run netstat using NRPE failed
Replies: 11
Views: 7191

Re: Run netstat using NRPE failed

Tried that, but I'm getting a permission denied

/bin/su: Permission denied
by yanivhs
Tue Oct 29, 2013 1:59 am
Forum: Open Source Nagios Projects
Topic: Run netstat using NRPE failed
Replies: 11
Views: 7191

Re: Run netstat using NRPE failed

Yes, I have su

/bin/su
Permissions :
-rwsr-xr-x. 1 root root 34904 May 23 14:00 /bin/su
by yanivhs
Sun Oct 27, 2013 2:13 am
Forum: Open Source Nagios Projects
Topic: Run netstat using NRPE failed
Replies: 11
Views: 7191

Re: Run netstat using NRPE failed

Running the attached one I'm getting : /usr/lib64/nagios/plugins/check_netstat.sh: line 22: su: command not found /usr/lib64/nagios/plugins/check_netstat.sh: line 24: [: -lt: unary operator expected /usr/lib64/nagios/plugins/check_netstat.sh: line 33: [: -gt: unary operator expected /usr/lib64/nagio...
by yanivhs
Thu Oct 24, 2013 1:16 am
Forum: Open Source Nagios Projects
Topic: Run netstat using NRPE failed
Replies: 11
Views: 7191

Re: Run netstat using NRPE failed

Here are the scripts

nrpe.cfg

My script ( located at /usr/lib64/nagios/plugins )
I've also tried copying the netstat file to the plugins directory, but with same results.

Thanks
Yaniv
by yanivhs
Wed Oct 23, 2013 7:21 am
Forum: Open Source Nagios Projects
Topic: Run netstat using NRPE failed
Replies: 11
Views: 7191

Run netstat using NRPE failed

Hello I've created a simple script to check established connection number. The script runs fine, but when I'm trying to run it using NRPE, I'm getting "OK, 0 connections " instead of the real connection number. I've added the sudo to the command configuration in nrpe.cgf, and now I'm getti...