Problem with a check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Problem with a check

Post 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 
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem with a check

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
guppy_rules
Posts: 12
Joined: Thu Feb 09, 2012 10:21 am

Re: Problem with a check

Post 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$
}
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem with a check

Post by lmiltchev »

Did running the "chown nagios.nagios /usr/local/nagios/libexec/tsmmonitor.sh", as suggested by sreinhardt fix your problem?
Be sure to check out our Knowledgebase for helpful articles and solutions!
guppy_rules
Posts: 12
Joined: Thu Feb 09, 2012 10:21 am

Re: Problem with a check

Post by guppy_rules »

No, unfortunately not:
# ls -l tsmmonitor.sh
-rwxr-xr-x 1 nagios nagios 59319 May 14 14:26 tsmmonitor.sh
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Problem with a check

Post 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]
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
guppy_rules
Posts: 12
Joined: Thu Feb 09, 2012 10:21 am

Re: Problem with a check

Post by guppy_rules »

Hi,

I send an email to support.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Problem with a check

Post by slansing »

Closing, moving to email support.
Locked