Monitor a host without ping

Schmitz, Carsten Carsten.Schmitz at aegon.com
Thu Jan 27 12:11:30 CET 2005


Hi,

check_tcp might work for you.

I use it for monitoring webservers that I can't connect to without tweaks (IIS and stuff). It takes any port and reports if a TCP connection is accepted or not.


	  [...]
        check_command                   check_tcp!443
        }

Cheers,
Carsten

-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Chris de
Vidal
Sent: Wednesday, January 26, 2005 8:56 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Monitor a host without ping


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


-------------------------------------------------------
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