[Nagiosplug-help] check_nt USEDDISKSPACE problem with Nagios 3
Timothy J. Williams
twilliams at suttercourts.com
Fri Mar 14 16:11:09 CET 2008
Thomas,
Thank You for the easy fix. All I had to do is open my eyes.
You are the MAN!
Tim
-----Original Message-----
From: Thomas Guyot-Sionnest [mailto:dermoth at aei.ca]
Sent: Friday, March 14, 2008 12:49 AM
To: Timothy J. Williams
Cc: nagiosplug-help at lists.sourceforge.net
Subject: Re: [Nagiosplug-help] check_nt USEDDISKSPACE problem with Nagios 3
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 13/03/08 02:08 PM, Timothy J. Williams wrote:
> I’m having a problem with the check_nt plugin when using the
> USEDDISKSPACE variable.
>
>
>
> When I tryed to verify the config after doing an upgrade from 3.0rc1 to
> 3.0 Stable I get a message:
>
>
>
> Error: Service description, host name, or check command is NULL
>
> Error: Could not register service (config file
> '/usr/local/nagios/etc/objects/services.cfg', starting on line 176)
>
>
>
> I went to the services.cfg file and found the following lines:
>
> [...]
>
> I have other check_nt variables, not USEDDISKSPACE, in use after these
> and they work fine.
>
> I can remark these lines and the verify works fine.
This is because you end the service_description lines with "\", so the
check_command line is actually part of the service description
(multi-line definition).
Escaping the backslash ("\\") or adding an extra space after it *may*
work without altering the service name, but my recommendation would be
just stripping it off to avoid problems.
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFH2i3Q6dZ+Kt5BchYRAqp+AJ465/zOTkyOt1zfY0t3MV42DRRDyQCfXFsu
/8z9D9M3OaRUIRmvHPbZs+4=
=EP5C
-----END PGP SIGNATURE-----
More information about the Help
mailing list