Monitor a host without ping
Patrick Proy
nagios-user at proy.org
Thu Jan 27 15:50:09 CET 2005
It is not possible to put arguments in the host "check-command" with Nagios
1.2.
Harcode the port in the command : "/usr/lib/nagios/plugins/check_ssh -p 602
$HOSTADDRESS$"
Patrick
nagios AT proy.org
> -----Message d'origine-----
> De : nagios-users-admin at lists.sourceforge.net
> [mailto:nagios-users-admin at lists.sourceforge.net] De la part
> de Chris de Vidal
> Envoyé : mercredi 26 janvier 2005 20:56
> À : nagios-users at lists.sourceforge.net
> Objet : [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