Page 1 of 1

Nagios Log and Nagios intégration

Posted: Thu May 04, 2017 12:57 pm
by bennyboy
Hi,

I just test the NRDP integration with Nagios Log and Nagios XI. It's working fine but I don't see any detail information in the alert status.

Image

I want the message instead of the matching message. It's possible ?

I also need the possiblity to add the URL somewhere in Nagios to be able to see the detail by Nagios Log Server.

It's possible ?

Thank you in advance!!!

Re: Nagios Log and Nagios intégration

Posted: Thu May 04, 2017 1:31 pm
by dwhitfield
Being able to view the logs is a feature request already. It's task 5843 if you ever want to check on the status.

As far as adding the URL in XI, you could do this with a Custom Dashlet. It might not be the best place for it, but most of the PHP files are not protected by source guardian, so you could try adding the link on your test XI server (as a reminder, each license gives you the opportunity to install one XI for production, one for testing, and one as a backup).

It's not 100% clear to me if you want both the link and the logs or if one or the other would work. If you'd like both to be an option, I will be happy to put in a feature request for a link to the log server.

You could put the URL in a note, but I don't know that that's any more useful that having the address there in the CCM, but maybe it's one less click.

Please let us know if you have anything else to add to this request.

Re: Nagios Log and Nagios intégration

Posted: Thu May 04, 2017 2:04 pm
by bennyboy
dwhitfield wrote:Being able to view the logs is a feature request already. It's task 5843 if you ever want to check on the status.

As far as adding the URL in XI, you could do this with a Custom Dashlet. It might not be the best place for it, but most of the PHP files are not protected by source guardian, so you could try adding the link on your test XI server (as a reminder, each license gives you the opportunity to install one XI for production, one for testing, and one as a backup).

It's not 100% clear to me if you want both the link and the logs or if one or the other would work. If you'd like both to be an option, I will be happy to put in a feature request for a link to the log server.

You could put the URL in a note, but I don't know that that's any more useful that having the address there in the CCM, but maybe it's one less click.

Please let us know if you have anything else to add to this request.
Can you give the link for task 5843 please.

That shortcut is for our Operation center team. He have to handle a lot of alert and quicker the step are better the result is for us.
The better option is to get the log message as alert status message.

Re: Nagios Log and Nagios intégration

Posted: Thu May 04, 2017 3:19 pm
by dwhitfield
bennyboy wrote: Can you give the link for task 5843 please.
I could give you a link, but it wouldn't do you any good as the feature requests are only internal.

I can tell you that the status changed from "Pending Approval" to "Unhandled" in March. There is not yet a release version listed on the task. We can just leave this thread open and you can check back after XI 5.5 is out and see if it was added. Unfortunately, I can't give you a date yet for XI 5.5. I think Sept 1 is a pretty safe day to check back if you haven't seen XI 5.5 before then, but again, Sept 1 is not a guarantee.

Re: Nagios Log and Nagios intégration

Posted: Fri May 05, 2017 1:40 pm
by bennyboy
I see I can use couple %variable% in email tempalte. Those %variable% can be available in script or other notification method ?

Thank you!

Re: Nagios Log and Nagios intégration

Posted: Fri May 05, 2017 1:52 pm
by dwhitfield
Yes, for example, the following is the default notify-host-by-email in the CCM

Code: Select all

/usr/bin/printf "%b" "***** Nagios Monitor XI Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
The CCM uses $ rather than %, but you'll notice overlap with what's at https://assets.nagios.com/downloads/nag ... iables.pdf

Re: Nagios Log and Nagios intégration

Posted: Fri May 05, 2017 1:55 pm
by bennyboy
I talk about Nagios Log Server Side.

Re: Nagios Log and Nagios intégration

Posted: Fri May 05, 2017 2:14 pm
by mcapra
There is a pending feature request to allow Nagios Log Server macros to be fed into scripts or NRDP messages as well (ID 7424).

Re: Nagios Log and Nagios intégration

Posted: Fri May 05, 2017 2:17 pm
by avandemore
There are variables in the script method as well, you can see them in the alert, select script, then scroll down. I believe more is due in the next update to NLS coming relatively soon.

https://www.nagios.com/roadmaps/