CPU load, network usage or memory consumption periodic state

mark redding mwjredding at gmail.com
Fri Dec 7 15:12:10 CET 2007


HI Christophe,

On 07/12/2007, Christophe HENRY <listes at sbgodin.fr> wrote:
> As far as I know, Nagios can be used to raise alerts when some plugins
>
> (like check_load) find something wrong. I didn't see anything to make the
>
> scripts write useful informations into script/computer readable files.

If you enable performance data then you can implement a script to take
this data and process it however you wish - for example, some folks
use the nagiosgraph package to produce rrd'style graphs from said
performance data. I, on the other hand, take the performance data and
store it away in a firebird database.

For example :-

define command{
        command_name    process-service-perfdata
"$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$"
        command_line    /usr/local/nagios/perfdata/insert.pl
}

where "insert.pl" is your own homegrown perl script to extract the
numbers from the perfdata log file (which you will find in
/var/spool/nagios/perfdata.log)


You also need to add the following to your main nagios.cfg file :-

process_performance_data=1
service_perfdata_file=/var/spool/nagios/perfdata.log
service_perfdata_file_processing_command=process-service-perfdata

hope this helps.

-- 
bright blessings,
Mark

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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