Monitor a host without ping
Chris de Vidal
Chris at deVidal.tv
Wed Jan 26 20:56:15 CET 2005
Software versions:
Nagios 1.2.0 from Backports.org
Debian Woody (3.0)
Kernel 2.6.9
Problem: Cannot monitor a host if I cannot ping it.
Problem explained:
I have a firewall that has pings disabled BUT I can access it via SSH on
port 602.
I tried this but it didn't work:
define host{
use our_generic-host
host_name firewall
alias firewall
address 123.456.789.0
check_command check_ssh!602
}
The check_command is my own custom command:
define command{
command_name check_ssh
command_line /usr/lib/nagios/plugins/check_ssh -p $ARG1$ $HOSTADDRESS$
}
This command works well, but only as the service for other machines but
never works as the check_command for a host.
Again, the command works just fine, just not as the check_command for a host.
Ideas?
CD
God shows his love for us in that while we were still sinners, Christ died
for us. Since, therefore, we have now been justified by his blood, much
more shall we be saved by him from the wrath of God. For if while we were
enemies we were reconciled to God by the death of his Son, much more, now
that we are reconciled, shall we be saved by his life. (Romans 5:8-10)
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
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