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.
Perl script not executing with notification commands
Re: Perl script not executing with notification commands
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>
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.
Re: Perl script not executing with notification commands
Thanks for update.
My issue resolved after this setting.
My issue resolved after this setting.
Re: Perl script not executing with notification commands
Sounds good!
Are we okay to lock this up? Or did you have any more questions about this topic?
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
Hi ,
You can lock it . as of now i have no question to ask about this.
You can lock it . as of now i have no question to ask about this.
Re: Perl script not executing with notification commands
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!
If you have any more questions, feel free to create another thread.
Thanks for using the Nagios Support Forum!