[Nagiosplug-help] plugin help
Andy Shellam
andy.shellam-lists at mailnetwork.co.uk
Fri Jul 4 19:35:21 CEST 2008
Hi Mike,
It looks Nagios is trying to find a command called "check_http -H
192.168.0.5."
What is your service definition for the "localhost" host (in
localhost.cfg) ?
The relevant line should be:
service {
...
check_command check_http
...
}
I'm guessing at the minute it says something like
service {
...
host localhost
...
check_command check_http -H $HOSTADDRESS$
...
}
which is incorrect. Your command definition looks fine.
http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service
http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#command
Andy
mcalautt wrote:
> trying to implement the check_http plugin.
>
> when ever I add the entry to the localhost.cfg and run a sanity check
> I get.
>
> Checking services...
> Error: Service check command 'check_http -H 192.168.0.5' specified in
> service 'Current Http' for host 'localhost' not defined anywhere!
> I cant find any docs on how to add the plugin.
> there is reference to it in commands.cfg but it is not displayed on
> the webpage under service details.
> everything else listed in
>
> pwd
> /etc/nagios
> grep check_http *|grep -vi sampl
> commands.cfg:# 'check_http' command definition
> commands.cfg: command_name check_http
> commands.cfg: command_line $USER1$/check_http -H $HOSTADDRESS$
> thanks
> mike
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> ------------------------------------------------------------------------
>
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
More information about the Help
mailing list