Page 1 of 1

Perl script not executing with notification commands

Posted: Tue Feb 06, 2018 11:16 pm
by Gonela
Hi Team,

We are trying to executing the perl script which is for notification commands but if we run the script manually and we are able to executing in nagios server but we are not able to executing through the notification command.

The file having the apache:nagios permission on perl script.

Re: Perl script not executing with notification commands

Posted: Wed Feb 07, 2018 10:38 am
by cdienger
Is the script in the /usr/local/nagios/libexec directory? If so, you should be able to define the command with $USER1$/commandname under Configure > Core Config Manager > Commands.

Try making the script executable for all by running:

chmod a+rx <perlscriptlocation>

Also try running it as the nagios user with:

su nagios <perlscriptlocation>

Re: Perl script not executing with notification commands

Posted: Mon Feb 19, 2018 8:39 pm
by Gonela
Thanks for update.

My issue resolved after this setting.

Re: Perl script not executing with notification commands

Posted: Tue Feb 20, 2018 10:13 am
by kyang
Sounds good!

Are we okay to lock this up? Or did you have any more questions about this topic?

Re: Perl script not executing with notification commands

Posted: Thu Feb 22, 2018 2:58 am
by Gonela
Hi ,

You can lock it . as of now i have no question to ask about this.

Re: Perl script not executing with notification commands

Posted: Thu Feb 22, 2018 10:16 am
by kyang
Sounds good! I'll be closing this thread!

If you have any more questions, feel free to create another thread.

Thanks for using the Nagios Support Forum!