[Nagiosplug-help] check_disk doesn't work for me
Subhendu Ghosh
sghosh at sghosh.org
Mon Nov 11 14:53:03 CET 2002
Your service config indicates that you are querying the local system for
check_disk
Your other configs - load, proc (NOT ping, smtp) are also incorrect f the
follow the same format. You will probably find that all your systems have
exactly the same load and process count.
PING and SMTP are tested over the network and are not affected by
"local"/"remote" system issues.
Even though you have installed the plugins on the other systems, nagios
has no way to login to the system to excute the plugin and parse the
results. You need to configure NRPE or check_by_ssh to allow nagios to
retrieve remote system's local results.
http://www.nagios.org/faqs/viewfaq.php?faq_id=59
-sg
On Mon, 11 Nov 2002, Gerald Wichmann wrote:
> I've around 10 redhat 7.x systems I'm monitoring for load, proc, ping, smtp,
> and file system sizes. The last doesn't work but the others work fine. That
> status for all my filesystem checks comes back "unknown" except for 1 system
> - the system running nagios. I've copied check_disk over to one of the other
> servers and ran it manually and it runs fine locally on the below /dev/hda6.
> But when Nagios monitors it it continues to come back unknown with "Unable
> to read output:" in the Status column. Kernel is 2.4.19-1.
>
> Any idea whats wrong or how to go about troubleshooting why this is
> occurring? Searching google yielded no useful info unfortunetly and I've
> been scouring the documentation and finding nothing. I'm not really sure how
> nagios invokes check_disk remotely so I can't simulate it "manually"
> remotely to see what output it comes back with.
>
> Running it locally after copying check_disk over to the below server:
>
> [root at ps-sm-poly-00 mailSend]# check_disk -c10% -w20% -p /dev/hda6 -v
> /bin/df -Pk /dev/hda6 ==> DISK OK - [926884 kB (94%) free on /dev/hda6]
> [root at ps-sm-poly-00 mailSend]# check_disk -c10% -w20% -p /dev/hda6
> DISK OK - [926884 kB (94%) free on /dev/hda6]
>
>
> Checkcommands.cfg:
>
> # 'check_local_disk' command definition
> define command{
> command_name check_local_disk
> command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
> }
>
>
> services.cfg:
>
> # Service definition
> define service{
> use generic-service ; Name of
> service template to use
>
> host_name ps-sm-pogo-00
> service_description / Free Space
> is_volatile 0
> check_period 24x7
> max_check_attempts 3
> normal_check_interval 5
> retry_check_interval 1
> contact_groups linux-admins
> notification_interval 120
> notification_period 24x7
> notification_options w,u,c,r
> check_command check_local_disk!20%!10%!/dev/hda6
> }
>
>
>
>
>
>
> Gerald Wichmann
> Senior Systems Development Engineer
> Zantaz, Inc.
> 925.598.3099 (w)
>
>
--
More information about the Help
mailing list