1st post to the group, basic q ... I think
Lance Raymond
lraymond at weatherflow.com
Mon Feb 23 23:03:12 CET 2009
so far the install, etc. went easy there are some good doc's there.
I am still understanding the groups, etc. but so far I have the server
and 2 remote hosts setup. The load check isn't really to good, so I
downloaded the perl one using snmp and from the command line works
great, see this example;
[root at ws6 libexec]# perl ./check_snmp_load.pl -H ipadd -C community -w
3,3,2 -c 4,4,3 -T netsl
Load : 5.55 5.04 4.87 : 5.55 > 4 : CRITICAL 5.04 > 4 : CRITICAL 4.87 > 3
: CRITICAL
I added the following to the commands.cfg file;
define command{
command_name check_snmp_load_v1
command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ $USER7$ -T
$ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$
}
on the target machine I put;
define service{
use local-service ; Name of
service template to use
host_name servername
service_description Current Load via SNMP
check_command
check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
}
I restarted nagios, saw the new line in the details, but the values are
showing as;
OK - load average: 0.10, 0.06, 0.01
I did have a shell opened testing the local script at the same time and
the load is still around 5.
I will have other questions, etc. as I read/play more, but just wanted
to get this part done, then look at thresholds, etc. but if anyone is
using this script and notice something obvious, please feel free to let
me know.
Thanks.
------------------------------------------------------------------------------
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