Using 'sar' utility in nagios

Hi,

I am using nagios 2.8. I want to collect cpu performance data - the time it spends in user space, kernel space integrating with utility like “sar” and also i want to display it in nagios.

The output of sar command is:

sar
Linux 2.6.18-1.2798.fc6 (localhost.localdomain) 03/25/2008

08:11:26 AM LINUX RESTART

08:30:54 AM LINUX RESTART

08:40:01 AM CPU %user %nice %system %iowait %steal %idle
08:50:01 AM all 3.42 0.00 0.58 0.04 0.00 95.96
09:00:01 AM all 1.50 0.00 0.26 0.17 0.00 98.07
09:10:01 AM all 3.41 0.00 0.62 0.18 0.00 95.79
09:20:01 AM all 3.51 0.00 0.59 0.28 0.00 95.62
Average: all 2.96 0.00 0.51 0.17 0.00 96.36

Since nagios allows only first line of output,i couldn’t able to view the full output. I have to display atleast one line of the above said output. Please help me to solve this issue.

Regards,
gayathri

Upgrade to Nagios 3.0. Nagios 3.0 is released.

Nagios 3.0 supports multi line check results

my-plugin.de/wiki/projects/c … screenshot