How to use check_nagios ?
Marek Grinberg
magr50 at telia.com
Fri Aug 31 21:02:44 CEST 2012
Hello,
I have Nagios 3.4.1 and Nagios plugins 1.4.15 installed & running in
RedHat 5.8
I have defined check_nagios in commands.cfg:
define command{
command_name check_nagios
command_line $USER1$/check_nagios -F $ARG1$ -e $ARG2$ -C $ARG3$
# command_line $USER1$/check_nagios -F
/usr/local/nagios/var/status.dat -e $ARG1$ -C /usr/local/nagios/bin/nagios
and in localhost.cfg:
define service{
use local-service ; Name of service
template to use
host_name Nagios
service_description Nagios
check_command check_nagios
notifications_enabled
check_nagios!/usr/local/nagios/var/status.dat!5!/usr/local/nagios/bin/nagios
}
Nagios Services in Firefox show:
Nagios Notifications for this service have been disabled
UNKNOWN 2012-08-31 19:24:35 0d 2h 38m 43s 4/4 Usage:
Explicit check shows:
# ./check_nagios -F /usr/local/nagios/var/status.dat -e 5 -C
/usr/local/nagios/bin/nagios
NAGIOS OK: 2 processes, status log updated 5 seconds ago
What have I missed ?
Marek
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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