Search found 7 matches
- Tue Feb 02, 2021 8:34 pm
- Forum: Nagios Log Server
- Topic: Alert not executing script
- Replies: 9
- Views: 936
Re: Alert not executing script
Sorry for the super late reply. I was out sick the last 2 weeks and was just now able to get back to this. This issue has been resolved. The main issue turned out to be a silent failure in my main python script that was creating the illusion that it wasn't even being executed. Nothing appears to hav...
- Thu Jan 14, 2021 6:11 pm
- Forum: Nagios Log Server
- Topic: Alert not executing script
- Replies: 9
- Views: 936
Re: Alert not executing script
I checked the /etc/sudoers file and it already had the lines at the bottom that you mentioned. This got me curious so I dug around in our /etc/passwd file and noticed that the nagios gid didn't match the uid. I'm not super knowledgeable about Linux, I just know enough to do basic navigation around t...
- Tue Jan 12, 2021 5:17 pm
- Forum: Nagios Log Server
- Topic: Alert not executing script
- Replies: 9
- Views: 936
Re: Alert not executing script
So this script is pretty simple, most of the real work is done by a python script that is called by this CAP_Network.sh script. Below are the file permissions for both files. Nagios Alert chmod.png When I run this command the script executes as expected: sudo su -c "/usr/local/nagioslogserver/s...
- Mon Jan 11, 2021 4:19 pm
- Forum: Nagios Log Server
- Topic: Alert not executing script
- Replies: 9
- Views: 936
Re: Alert not executing script
Did you mean what version of LS? We are on Nagios Log Server version 2.1.6 running on a server with CentOS Linux release 7.7.1908 (Core) Here are the settings for the alert Nagios Alert Screenshot.PNG And here is the alert history showing the alert was triggered as expected. The script wasn't execut...
- Mon Jan 11, 2021 12:45 am
- Forum: Nagios Log Server
- Topic: Alert not executing script
- Replies: 9
- Views: 936
Alert not executing script
I have a problem where when I "activate" an alert which executes a script it does not execute the script when the alert is triggered. The alert shows that it was run in the alert history and that the log threshold was met for the script to be executed but the script was never executed. Whe...
- Wed Jun 17, 2020 3:57 pm
- Forum: Nagios Log Server
- Topic: Get Current Alert Configuration
- Replies: 4
- Views: 344
Re: Get Current Alert Configuration
This was exactly what I needed, thank you.
- Mon Jun 15, 2020 4:09 pm
- Forum: Nagios Log Server
- Topic: Get Current Alert Configuration
- Replies: 4
- Views: 344
Get Current Alert Configuration
I have a script running on an alert being triggered in which I need to get the current alert configuration. I have attempted to use the alert history API, however I can only get information about the alert from the last time it was triggered at the latest. However, I can't assume that the last time ...