How to monitor a process
I am new to linux/nagios and I need help on how to monitor a process using nagios.
I currently have nagios core 3.2.3 monitoring some servers. I want to monitor the state of a linux process running under /proc/sys/net/ipv4/ip_forward
This file returns state 1 when the process is running and 0 when it is not. I want nagios to send an error message whenever /proc/sys/net/ipv4/ip_forward returns or stores 0. Is this possible?
Secondly, is it possible to configure nagios to send an error message when it sees 0 and OK when it sees 1 in any other file (not necessarily /proc/sys/net/ipv4/ip_forward).
Thank you in advance,