Need some help to monitor script on Linux

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kodlan
Posts: 10
Joined: Thu Apr 04, 2019 7:38 am

Need some help to monitor script on Linux

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Need some help to monitor script on Linux

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked