Nagios Log and Nagios intégration

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
bennyboy
Posts: 157
Joined: Thu Oct 29, 2015 9:42 am

Nagios Log and Nagios intégration

Post 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!!!
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios Log and Nagios intégration

Post 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.
bennyboy
Posts: 157
Joined: Thu Oct 29, 2015 9:42 am

Re: Nagios Log and Nagios intégration

Post 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.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios Log and Nagios intégration

Post 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.
bennyboy
Posts: 157
Joined: Thu Oct 29, 2015 9:42 am

Re: Nagios Log and Nagios intégration

Post 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!
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios Log and Nagios intégration

Post 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
bennyboy
Posts: 157
Joined: Thu Oct 29, 2015 9:42 am

Re: Nagios Log and Nagios intégration

Post by bennyboy »

I talk about Nagios Log Server Side.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios Log and Nagios intégration

Post 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).
Former Nagios employee
https://www.mcapra.com/
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Nagios Log and Nagios intégration

Post 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/
Previous Nagios employee
Locked