I have a following issue with Nagios. Here is my command definition:

define command{

command_name    dlg_notifications
command_line    /usr/local/nagios/libexec/nagios-msg-broker.sh
}

and service definition

define service{

use mypc service_description dlg_Alerts_notifications check_command dlg_notifications max_check_attempts 1 retain_status_information 0 retain_nonstatus_information 0 }

/bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh runs fine manually.

I can run this script manually, but service defined above can’t run it. Here are the ownership/permissions of the script:

perfserver-10:/usr/local/nagios/libexec$ ls -l nagios-msg-broker.sh -rwxrwxrwx 1 nagios nagcmd 149 Mar 30 10:04 nagios-msg-broker.sh

Thanks.

asked 30 Mar '12, 14:23

lesman's gravatar image

lesman
112
accept rate: 0%




Have you tried running this as the same user that nagios runs as? Perhaps that user doesn't have a shell defined?

link

answered 16 Apr '12, 12:32

gmartin's gravatar image

gmartin
2516
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×4

Asked: 30 Mar '12, 14:23

Seen: 1,331 times

Last updated: 16 Apr '12, 12:32

powered by OSQA