Page 1 of 1

Testing of alerts

Posted: Tue Sep 11, 2018 8:28 am
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.

Re: Testing of alerts

Posted: Tue Sep 11, 2018 9:03 am
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.

Re: Testing of alerts

Posted: Tue Sep 11, 2018 2:52 pm
by cdienger
Thanks for the assist, @mcapra!