configuring plugins to return graphable data
Marc Powell
marc at ena.com
Fri Feb 27 21:55:25 CET 2009
On Feb 27, 2009, at 2:34 PM, Ayotunde Itayemi wrote:
> Hi All,
> Please I am using the default plugin sets on my Solaris/Linux
> systems. I would like to know the changes I need to make to these
> plugins (e.g., check_ram, check_load, check_cpu, check_disk,
> check_ping, etc)
> I need to graph their output’s for proper reporting purposes but I
> can’t remember the approach to making them return output in the
> proper format .. something about everything after “|” – please
> help. Thanks. A concrete example will be appreciated.
Most of the standard plugins just do it; no need to specifically
enable it. Make sure you're using the latest plugins (http://www.nagiosplugins.org
)
$ /check_load -w 1,1,1 -c 2,2,2
WARNING - load average: 1.20, 1.71, 1.85|load1=1.200;1.000;2.000;0;
load5=1.710;1.000;2.000;0; load15=1.850;1.000;2.000;0;
$ ./check_disk -w 10% -c 5%
DISK OK - free space: / 2258 MB (30% inode=85%); /boot 49 MB (57%
inode=99%); /opt 9429 MB (49% inode=99%); /dev/shm 1001 MB (100%
inode=99%); /tmp 1832 MB (98% inode=99%); /usr 7412 MB (79%
inode=94%); /usr/local 30877 MB (38% inode=98%); /var 7328 MB (78%
inode=99%); /usr/local/nagios 76535 MB (85% inode=99%);| /=5215MB;
7086;7480;0;7874 /boot=37MB;81;86;0;91 /opt=9776MB;
18209;19221;0;20233 /dev/shm=0MB;900;950;0;1001 /tmp=36MB;
1771;1869;0;1968 /usr=1929MB;8857;9349;0;9842 /usr/local=48537MB;
75297;79480;0;83664 /var=2014MB;8857;9349;0;9842 /usr/local/
nagios=12735MB;84642;89344;0;94047
For those that don't, and for third party plugins like check_ram and
check_cpu, you'll have to use --help of the plugin to see if it's
supported and how to enable it.
--
Marc
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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