Command to ping one host from another?
Posted: Thu Apr 05, 2012 9:31 am
Hello All,
Due to my inexperience with Nagios I'm struggling a bit and would appreciate some input from the community.
I need to verify connectivity between two hosts - e.g. host1 is an application server which needs to communicate with other hosts on various ports to verify LDAP, SQL, SMTP, POP3 is available to host1. I basically need a command that would tell host1 to communicate with host2 on port x and report critical if the connection cannot be established.
The IP addresses and port numbers would vary by host, so I would need $ARG$ variables in the place of those parameters. I created a simple check ($USER1$/check_tcp -H $ARG1$ -p $ARG2$ ) that works for host and port, but I can't figure out how to define a "source IP" for the connectivity check (example check only verifies connectivity between Xi and target apparently).
I'm currently running Xi on the vendor supplied VM, 2011r2.2
Monitored servers are a mixture of Win2k3, Win2k8 using NSClient++ as the agent
Much Appreciated,
Brian
Due to my inexperience with Nagios I'm struggling a bit and would appreciate some input from the community.
I need to verify connectivity between two hosts - e.g. host1 is an application server which needs to communicate with other hosts on various ports to verify LDAP, SQL, SMTP, POP3 is available to host1. I basically need a command that would tell host1 to communicate with host2 on port x and report critical if the connection cannot be established.
The IP addresses and port numbers would vary by host, so I would need $ARG$ variables in the place of those parameters. I created a simple check ($USER1$/check_tcp -H $ARG1$ -p $ARG2$ ) that works for host and port, but I can't figure out how to define a "source IP" for the connectivity check (example check only verifies connectivity between Xi and target apparently).
I'm currently running Xi on the vendor supplied VM, 2011r2.2
Monitored servers are a mixture of Win2k3, Win2k8 using NSClient++ as the agent
Much Appreciated,
Brian