LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-02-2013, 05:17 AM   #1
Koloz
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Rep: Reputation: Disabled
How to monitor a process


Hi,

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,
Koloz.
 
Old 01-02-2013, 06:59 AM   #2
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,496
Blog Entries: 13

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
How to check if remote process is running - Linux Sysadmin Blog
...is Debian-flavored...

Nagios Core Documentation
should work on all systems.

Good Luck!

Last edited by Habitual; 01-02-2013 at 07:01 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitor a Process linuxaddict7 Linux - Server 4 09-08-2009 09:40 AM
How to monitor process UltraSoul Linux - Software 1 11-20-2008 03:29 AM
Process monitor $@ya Programming 5 09-15-2005 11:57 AM
monitor process iclinux Programming 3 01-16-2005 02:00 PM
process monitor iclinux Programming 6 01-14-2005 09:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration