Page 1 of 1
NLS system Alarm monitoring
Posted: Thu Nov 08, 2018 10:05 am
by technosol
Hi,
Are we able to Verify Nagios log server system fault/Alarm management?
For example;
Cluster status, Logstash status, elasticsearch status..etc.
How can we simulate these testing with the error thresholds ( WARNING|CRITICAL|..etc.
Thank you
Re: NLS system Alarm monitoring
Posted: Thu Nov 08, 2018 5:32 pm
by cdienger
The check_http(
http://nagios-plugins.org/doc/man/check_http.html) plugin can be used to make calls to Log Server's API and check that the results contain specific strings. API info can be found at
https://support.nagios.com/kb/article/n ... s-596.html
NCPA(
https://www.nagios.org/ncpa/) can be another option too and for other things the API may not handle. Stuff like the cluster state for example would need a local query to the elasticseach database. NCPA can run custom scripts to get this info(
https://support.nagios.com/kb/article/n ... a-722.html). Cluster state can be pulled with a curl command:
curl http://localhost:9200/_cluster/state
Re: NLS system Alarm monitoring
Posted: Fri Nov 09, 2018 5:40 am
by technosol
Hi
Thank you for the reply. As per the details you have shared, we are able to check the status of nls using its API.
However, my requirement is, during the UAT we want to simulate the alarms that generating according to the MIB sources NLS have shared in
/usr/local/nagioslogserver/mibs
Where can we see these alarms and how can we generate these alarms as just for verification purpose?
Thank you.
Re: NLS system Alarm monitoring
Posted: Fri Nov 09, 2018 1:24 pm
by cdienger
Those are for instances where an XI server sends traps to NLS. See:
https://support.nagios.com/kb/article/n ... al-77.html
NLS alerts can be configured to send snmp traps following
https://assets.nagios.com/downloads/nag ... Server.pdf