Checking CPU Utilization - Take2

Francois JEANMOUGIN Francois.JEANMOUGIN at 123multimedia.com
Tue Jan 20 18:15:22 CET 2004


Behalf Of Neil:
> jeff vier writes:
> 
> >
> >  echo "`uptime | awk '{print $10}' | tr -d ,` * 4 " | bc -l
> >
> 
> Hey guys,
> 
> How can we use the above command line or other command line to be useful
> to
> nagios? I'm really interested. What are the steps needed so that value can
> be read by nagios?

You make a script in your nrpe scripts directory (check the scripts in there to have an example, especially for the return codes). Then you include those in nrpe.cfg (call it uptime, for example), then you define a check_nrpe service (nrpe!uptime). You're done.

François.



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list