passive checks AGAIN
Mariano Cunietti
mcunietti at enter.it
Tue Jul 5 17:29:11 CEST 2005
Hello everybody,
I'm getting crazy to get passive checks to work on Nagios 1.2.
I've set up everything so that snmp traps sent from Cisco ATM router
write correctly to nagios.cmd.
I've set up a service to handle more Virtual lines, and to declare which
VRF virtual line is going up or down, using the text space in the
nagios.cmd line.
Here's nagios.cmd:
[1120576366] PROCESS_SERVICE_CHECK_RESULT;atm1-mi;MPLS-VRF;0;milko
Yet, I was forced by Nagios to set up also a dummy active check
(check_dummy), otherwise it would refuse to startup.
services.cfg
define service {
use generic-service
name passive-service
is_volatile 1
passive_checks_enabled 1
max_check_attempts 10
normal_check_interval 1
retry_check_interval 1
notification_interval 60 ; 2h
active_checks_enabled 0
notification_period 24x7
notification_options c,r
check_command check_dummy!3
check_period 24x7
check_freshness 1
register 0
}
define service{
use passive-service
host_name atm1-mi
service_description MPLS-VRF
contact_groups admins-SMS
}
checkcommands.cfg:
define command{
command_name check_dummy
command_line $USER1$/check_dummy $ARG1$
}
Now, the BIG problem is that Nagios parses nagios.cmd, but the status
reported is the one set in check_command statement, and not the one
reported in nagios.cmd. So I always get all lines in UNKNOWN(=exit
status 3) state.
Any hint? Please help
Regards,
Mariano
--
-------------------------
Mariano Cunietti
System Administrator
Enter S.r.l.
Via Stefanardo da Vimercate, 28
20128 - Milano - Italy
Tel. +39 02 25514319
Fax +39 02 25514303
mcunietti at enter.it
www.enter.it - www.enterpoint.it
---------------------------
Gruppo Y2K - www.gruppoy2k.it
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
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