Testing of alerts

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
fasanchez
Posts: 23
Joined: Wed Jan 10, 2018 9:07 am

Testing of alerts

Post by fasanchez »

I have several alerts setup in my configuration. But I want a method to test and ensure that when a message shows up in syslog it does alert. Not sure if NLS has the capability.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Testing of alerts

Post by mcapra »

You could manually ship a message using netcat.

Code: Select all

[root@ahri ~]$ sudo yum whatprovides nc
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.compevo.com
 * epel: mirrors.liquidweb.com
 * extras: repos.forethought.net
 * updates: mirrors.rit.edu
2:nmap-ncat-6.40-13.el7.x86_64 : Nmap's Netcat replacement
Repo        : base
Matched from:
Provides    : nc
Here are some examples of inserting "dummy" messages directly to Nagios Log Server:
https://support.nagios.com/forum/viewto ... at#p198855

Else, if the remote system that is shipping logs has logger available, you could use that to test.
Former Nagios employee
https://www.mcapra.com/
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Testing of alerts

Post by cdienger »

Thanks for the assist, @mcapra!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked