Perl script not executing with notification commands

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Gonela
Posts: 135
Joined: Wed Jan 10, 2018 5:23 am

Perl script not executing with notification commands

Post 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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Perl script not executing with notification commands

Post 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>
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Gonela
Posts: 135
Joined: Wed Jan 10, 2018 5:23 am

Re: Perl script not executing with notification commands

Post by Gonela »

Thanks for update.

My issue resolved after this setting.
kyang

Re: Perl script not executing with notification commands

Post by kyang »

Sounds good!

Are we okay to lock this up? Or did you have any more questions about this topic?
Gonela
Posts: 135
Joined: Wed Jan 10, 2018 5:23 am

Re: Perl script not executing with notification commands

Post by Gonela »

Hi ,

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

Re: Perl script not executing with notification commands

Post 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!
Locked