Testing of alerts
Testing of alerts
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
You could manually ship a message using netcat.
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.
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 : nchttps://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/
https://www.mcapra.com/
Re: Testing of alerts
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.