Page 2 of 2

Re: Problem with a check

Posted: Mon May 13, 2013 11:20 am
by abrist
Could run the command from XI with the "--debug" option?

Code: Select all

COMMAND: /usr/local/nagios/libexec/tsmmonitor.sh --debug -s=TSMLM1 scratch 

Re: Problem with a check

Posted: Mon May 13, 2013 11:29 am
by lmiltchev
How did you create this check in XI? Did you follow the following document?

Code: Select all

http://assets.nagios.com/downloads/nagiosxi/docs/Managing_Plugins_in_Nagios_XI.pdf
Can you post the service and command definitions?

Re: Problem with a check

Posted: Tue May 14, 2013 7:40 am
by guppy_rules
Debug gives nothing because the command and the script works well. When I give user apache the proper rights, then the test command from nagiosxi wil work:
nagios_testcheck.JPG
But the checks still give an Unknown.
nagios_output.JPG
The check command is defined as:
define service {
host_name TSM server
service_description Scratch tapes
use xiwizard_linuxserver_ping_service
check_command check_tsm!-s=TSMLM1 scratch!!!!!!!
max_check_attempts 5
check_interval 60
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
first_notification_delay 0
notification_period xi_timeperiod_24x7
notifications_enabled 0
contacts dve015
_xiwizard aix
register 1
}

The command:
define command {
command_name check_tsm
command_line $USER1$/tsmmonitor.sh $ARG1$ $ARG2$ $ARG3$ $ARG4$
}

Re: Problem with a check

Posted: Tue May 14, 2013 1:03 pm
by lmiltchev
Did running the "chown nagios.nagios /usr/local/nagios/libexec/tsmmonitor.sh", as suggested by sreinhardt fix your problem?

Re: Problem with a check

Posted: Thu May 16, 2013 6:00 am
by guppy_rules
No, unfortunately not:
# ls -l tsmmonitor.sh
-rwxr-xr-x 1 nagios nagios 59319 May 14 14:26 tsmmonitor.sh

Re: Problem with a check

Posted: Thu May 16, 2013 1:37 pm
by abrist
We may need to move this to out ticketing system so that we can set up a remote session if that is possible. Send an email to [email protected]

Re: Problem with a check

Posted: Tue May 21, 2013 4:52 am
by guppy_rules
Hi,

I send an email to support.

Re: Problem with a check

Posted: Tue May 21, 2013 1:07 pm
by slansing
Closing, moving to email support.