|
Groundwork Support Forum Community forum for Groundwork Open Source Products
|
View previous topic :: View next topic |
Author |
Message |
/root/
Joined: 15 Mar 2006 Posts: 1
|
Posted: Wed Mar 15, 2006 11:48 am Post subject: host check error |
|
|
Hello. Before I present my problem, I would like to thank the developers of this tool for taking the time and effort to make the lives of us Nagios users easier and more GUI. Thanks!
Now to the problem:
I am running Nagios on a i686 box with Red Hat 9
I have been running pre-flight with a pretty bare-bones configuration. I had several errors but I'm stuck on this one. When pre-flight checks the hosts, it gives me this error:
Error: Host check command '$USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1' specified for 'server-1' is not defined anywhere!'
It says the same thing about 'server-2', and then goes on to complain about not having host or service notification commands defined for my contacts.
The host check command I specifed is called 'check_host_alive'.
Here's what it looks like:
Name: check_host_alive
Type: check
Command line: check_host_alive!$USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1
At first I figured that monarch was writing to or looking at the wrong .cfg file, so I ran a 'find' and gave all files named 'host.cfg' bogus extensions and ran preflight again. I still got the same error. Then I found that Monarch had written a new 'host.cfg' file in the /usr/local/groundwork/monarch/workspace directory (not sure when this was done).
Then I wondered if it was a MySQL error. So I renamed a server alias, rebooted the box, and restarted MySQL. When I brought up the host vitals, the alias was still there.
As a last check to see if Monarch was looking in the wrong place, I deleted a host and rebooted. After running pre-flight, it appeared that monarch was looking in the right place(it no longer detected the host i deleted) but it still gave me the error above.
Any and all help given will be greatly appreciated. This is probably a really noob problem so sorry in advance. Thanks ahead of time! _________________ "Only you can prevent scouting. Boy do we need forest fires!"
-Homestarrunner |
|
Back to top |
|
|
Peter_Loh
Joined: 13 Feb 2006 Posts: 29
|
Posted: Wed Mar 15, 2006 7:28 pm Post subject: |
|
|
Your welcome! We appreciate the thanks!
In your command definition, the $USER1$ refers to a macro definition in the resources file. The resource file is where you put common arguments used by multiple scripts so that if you need to make a change, changing it in the resource file will change it everywhere. It is also used for passwords so they do not show in the service definition.
$USER1$ is used to point to the directory of all your Nagios plugins. This should be set to "/usr/local/groundwork/nagios/libexec". You can check this by going to Configuration, Control, Nagios Resource Macros. You can view or change the values there.
Another way to fix this is to go to the command definition and replace $USER1$ with "/usr/local/groundwork/nagios/libexec", but the above method is preferable. To do this, go to Configuration, Commands, Modify, then select the command (ie check_ping). You can modify your command definition there.
Please let us know if this doesn't address your problem.
Peter |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|