Use Amazon SNS for alerts?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Use Amazon SNS for alerts?

Post by cdienger »

I think the problem can be solved by changing this line:

Code: Select all

file = open("snslog", "a")
to:

Code: Select all

file = open("/usr/local/nagios/libexec/snslog", "a")
Make sure that the nagios account has write permissions to it.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
tanod
Posts: 21
Joined: Fri May 10, 2019 4:17 am

Re: Use Amazon SNS for alerts?

Post by tanod »

Unfortunately it doesn't change anything, always the same timeout and nothing in my log.

Permissions are 777, and it still work as nagios user manually.
tanod
Posts: 21
Joined: Fri May 10, 2019 4:17 am

Re: Use Amazon SNS for alerts?

Post by tanod »

OK, I tried a different way:
I execute my script with the Global Event Handlers.

And now it works.

But with this solution, I think I cannot manage schedules times ?
I could do it in my script, but when we have to modify them, it won't be as easy as with the graphical interface...
User avatar
swolf
Developer
Posts: 299
Joined: Tue Jun 06, 2017 9:48 am

Re: Use Amazon SNS for alerts?

Post by swolf »

Hi @tanod,

Would you be able to try using the event handler with a host/service as before, apply configuration, and then send one of us your system profile while this is configured? I'm not sure we'll be able to find the root cause without checking the configs themselves.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy
tanod
Posts: 21
Joined: Fri May 10, 2019 4:17 am

Re: Use Amazon SNS for alerts?

Post by tanod »

Hi,

Did you find anything?

Thank you :)
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Use Amazon SNS for alerts?

Post by cdienger »

Nothing conclusive yet, but try modifying the command to look like the attached screenshot. I'm not getting timeout errors, but I'm getting errors related to the parsing of these arguments and would like to see if it works for you like it works for me if these are removed.

I'm also using this previously suggested modification to the code:

Code: Select all

    file = open("/usr/local/nagios/libexec/snslog", "a")
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked