Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Please I'm quite new to Linux and I need help on how to monitor a process with Nagios.
I currently use Nagios Core 3.2.3 to monitor a couple of Linux servers. My question is can Nagios be used to monitor 0s and 1s? This is because I have a service that runs when there is 1 in its file while it stops running when this file returns a zero. I would like Nagios to send a critical alert message when this file returns a zero and OK when the file returns 1 as its content. Is this possible? If yes, which plugin can do this?
I think all monitoring really is is zeros and ones!
nagios itself can't do this, as nagios can't do anything basically. What you would do is write your own plugin script. this script can do whatever you want, but just needs to return the status codes for Nagios. Just look at any other check script and you'll get the idea, it's pretty easy.
BTW NRPE is AWFUL, i'd VERY strongly urge you to ditch it in favour of check_by_ssh to prevent having another network service open to the network, one that is very insecure and unencrypted. i'd also urge you to ditch Nagios completely, but that's another matter altogether!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.