ah, after all the install stuff to fall with something like that was just
bad! Well your right, but I am still having a problem. I read alot on
hostgroups, etc. and starting writing out the map of what and how so to then
go back to this, man, I am ready for bed! But here is the scoop / problem.
The command file is untouched. There is nothing in the services file as I
am only testing on one host, so it's in that servername.cfg file. Once
things work I can move it, but that box now has the following;
define command{
command_name check_snmp_load_v1
command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ $USER7$ -T
$ARG1$ -w $ARG2$ -c $$
}
define host{
use linux-server ; Name of host template to
use
; This host definition will
inherit all variables that are defined
; in (or inherited by) the
linux-server host template definition.
host_name db1
alias db1
address public ip here
}
define service{
use local-service ; Name of
service template to use
host_name bigbird
service_description Current Load via SNMP
check_command check_snmp_load_v1
}
I tried a few things after the _v1 but nagios kept failing on restart, so I
think I just need to figure out howto push the variables (such as hostIP ,
community name) to the check_command, right? Since changing the service to
use the new command, nagios is now red with the following error; Return code
of 255 is out of bounds
I'm getting closer, as I said some good reading 2nt, but not for this, so
hopefully someone has a quick answer and I promise to have more intelligent
questions after ;)
------------------------------------------------------------------------------
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@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