Search found 9 matches

by darthcolo
Wed Mar 21, 2012 10:17 am
Forum: Open Source Nagios Projects
Topic: [sort of SOLVED] Script (plugin) not working as expected
Replies: 12
Views: 2918

Re: [sort of SOLVED] Script (plugin) not working as expected

Thanks for your help.
I will check it as soon as I have some spare time.
by darthcolo
Fri Mar 09, 2012 8:17 am
Forum: Open Source Nagios Projects
Topic: [sort of SOLVED] Script (plugin) not working as expected
Replies: 12
Views: 2918

Re: [sort of SOLVED] Script (plugin) not working as expected

Nope. I can't do anything in the remote machine, because is a production server.

But thank you!
by darthcolo
Thu Mar 08, 2012 8:26 am
Forum: Open Source Nagios Projects
Topic: [sort of SOLVED] Script (plugin) not working as expected
Replies: 12
Views: 2918

Re: [sort of SOLVED] Script (plugin) not working as expected

This:

Code: Select all

/usr/opt/something/command
is on the remote Host, and I can't touch it for something else that diagnosis commands.

We cannot change anything about that command.
by darthcolo
Wed Mar 07, 2012 11:32 am
Forum: Open Source Nagios Projects
Topic: [sort of SOLVED] Script (plugin) not working as expected
Replies: 12
Views: 2918

Re: [sort of SOLVED] Script (plugin) not working as expected

Thanks for the response. These are the current settings of check_by_ssh: -rwxr-xr-x 1 root root 39796 may 22 2011 check_by_ssh The command executed in the remote Host (.../usr/opt/something/command | grep SOMETHING1 | grep SOMETHING-MORE...) needs root privileges. Nagios user can login through ssh j...
by darthcolo
Wed Mar 07, 2012 9:47 am
Forum: Open Source Nagios Projects
Topic: [sort of SOLVED] Script (plugin) not working as expected
Replies: 12
Views: 2918

Re: Script (plugin) not working as expected

Answer to myself: In order to work, I had to: 1) Assign a Shell to user nagios: usermod -s /bin/bash nagios 2) Include user nagios in sudoers list: nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_by_ssh 3) Edit the script: RESPUESTA=`sudo /usr/lib/nagios/plugins/check_by_ssh -H 10.xx.xx.xx ...
by darthcolo
Wed Mar 07, 2012 8:08 am
Forum: Open Source Nagios Projects
Topic: [sort of SOLVED] Script (plugin) not working as expected
Replies: 12
Views: 2918

[sort of SOLVED] Script (plugin) not working as expected

Hello guys! We are developing a script in our Nagiso Server to check a Host by "check_by_ssh" plugin. We have everything correctly configured. This is the script (modificated for preserve delicate information): #!/bin/bash RESPUESTA=`/usr/lib/nagios/plugins/check_by_ssh -H 10.xx.xx.xx -C /...
by darthcolo
Tue Feb 14, 2012 10:06 am
Forum: Open Source Nagios Projects
Topic: NSCA is not writing on log file(s)
Replies: 3
Views: 1527

Re: NSCA is not writing on log file(s)

nscott wrote:Are you using any kind of super daemon like xinetd?
I'm using openbsd-inetd
by darthcolo
Mon Feb 13, 2012 1:36 pm
Forum: Open Source Nagios Projects
Topic: NSCA is not writing on log file(s)
Replies: 3
Views: 1527

Re: NSCA is not writing on log file(s)

Anyone please?
by darthcolo
Thu Feb 09, 2012 1:23 pm
Forum: Open Source Nagios Projects
Topic: NSCA is not writing on log file(s)
Replies: 3
Views: 1527

NSCA is not writing on log file(s)

I have an installation of Nagios3 on my Debian sever. I have followed several tutorials for that and is working ok (I'm monitoring a client successfully ). I have tried to implement NSCA to monitor certain processes, but I'm first testing it in the server ( locally ). So, I have installed and config...