Monitor 2 interfaces on same host
Jan Scholten
Jan.Scholten at iconz.net
Thu Nov 11 21:09:36 CET 2004
Max Andersen wrote:
> How do I set up nagios (1.2) to show 1 image of the server, while
> monitoring 2 interfaces on that server?
>
> It would seem a bit confusing if viewing 2 different hosts, if it's
> actually only 1 host with 2 interfaces.
>
> Can it be done?
>
> Sincerely
> Max
Just define one host and use a check_command that take an IP Address as
Argument:
define command{
commands_name check_interface
command_line $USER1$/check_ping -H $ARG1$ -w $ARG2$ -c $ARG3$ -p 5
}
use it:
define service{
host_name myHost
service_description Interface1
..
check_command check_interface!192.168.0.1!3000.0,80%!5000.0,100%
}
and
define service{
host_name myHost
service_description interface2
..
check_command check_interface!192.168.0.2!3000.0,80%!5000.0,100%
}
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
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