Page 1 of 1

Need some help to monitor script on Linux

Posted: Tue Feb 11, 2020 1:23 am
by kodlan
Good Morning,

I am very new to Nagios core and need some help.
I have a few servers i am trying to monitor.
We currently monitor CPU, MEM and DISK.
But i want to execute a script on each machine that will check a certain service and gives me a feedback like ONLINE or OFFLINE.
How would i go by to configure this on Nagios Core?

Your help is much appreciated.

Re: Need some help to monitor script on Linux

Posted: Tue Feb 11, 2020 5:27 pm
by benjaminsmith
Hello @kodlan,

Thanks for using Nagios and welcome to the support forums. You could write a simple plugin with the desired status output - ONLINE or OFFLINE.

https://www.unixmen.com/write-nagios-pl ... sh-script/
http://nagios-plugins.org/doc/guidelines.html

A few helpful links to get up to speed:

Nagios Core Documentation
Nagios Exchange