Nagios 3.X quoted check commands
Hugo van der Kooij
hvdkooij at vanderkooij.org
Sat May 24 16:05:41 CEST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Aaron McKinnon wrote:
| I'm working on migrating a 1.4 server that uses some quoted check
| commands. For example:
|
| check_command "/usr/lib/nagios/plugins/check_file_age
| -w 86400 -c 172800 -W 310000 -C 1 -f /mnt/backup/aus-sql0/mysql/mysql.sql"
|
| ...and it appears that 3.X doesn't support that:
|
| Checking services...
| Error: Service check command '"/usr/lib/nagios/plugins/check_file_age -w
| 86400 -c 172800 -W 310000 -C 1 -f /mnt/backup/aus-sql0/mysql/mysql.sql"'
| specified in service 'MySQL Dump' for host 'aus-sql0.caltech.edu' not
| defined anywhere!
|
| Can anyone confirm or deny that?
Why would you use these quotes here to begin with. The while line after
the check_command keyword is considered to be the command to run the check.
I got plenty of those with ackward options without the need for quotes.
So just drop them.
for eaxmple:
define command{
~ command_name check-host-alive
~ command_line $USER1$/check_ping -H $HOSTADDRESS$ -w
3000.0,80% -c 5000.0,100% -p 1
~ }
Works like a charm.
Hugo.
- --
hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc
A: Yes.
>Q: Are you sure?
>>A: Because it reverses the logical flow of conversation.
>>>Q: Why is top posting frowned upon?
Bored? Click on http://spamornot.org/ and rate those images.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQFIOCCzBvzDRVjxmYERAoCBAJ0Uxvbcck0LoSgfe4M187GFEw54nwCgiMH8
KRMTu6iP2kYOOGluq5R018g=
=QGSI
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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