Nagios scripting question
Matthew Kent
matt at bravenet.com
Fri Feb 20 22:45:25 CET 2004
Sorry if this is a bit off topic, but having monitored SMART status on ide and scsi drives for many months now on ~100 hosts and not catching much, has anyone had a great deal of success in trapping/diagnosing problems with these checks?
- mattk
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Neil Lehouillier
Sent: Friday, February 20, 2004 12:14 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Nagios scripting question
Hi all,
I just a have a question that hopefully somebody knows the answer to.
I'm trying to monitor SMART on unix box using the check_smart.pl script. I have got it to work but it always reports "No Output!". The way I have set it up to work is like the following:
In my services.cfg file I have it setup like this:
define service {
host_name Sentry
service_description S.M.A.R.T - Status
register 1
max_check_attempts 1
normal_check_interval 3
retry_check_interval 1
check_period 24x7
notification_interval 0
notification_period 24x7
notification_options w,u,c,r
contact_groups ntadmins
check_command "/usr/local/nagios/etc/scheck.sh SMART"
}
and in the scheck.sh file:
if [ $1 = 'SMART' ] ; then
/usr/local/nagios/libexec/check_smart.pl -t -d /dev/hda
fi
This works fine but it show up as NO OUTPUT within nagios. I want to be able to see the results of this command with Nagios. Does anyone know how to do this?
Thanks in advance.....
Neil
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&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