pass port from host to service

Jun Li jun at lifecapturemedia.com
Fri Oct 28 19:57:39 CEST 2005


HI Marc,
Thank you for your reply and help.
I read the article you recommended. The solutions there is still hard coded 
port info from service. So, if different hosts with the same IP but diferent 
port, we have to create same amount of services serving for each host.

What I want to do is passing port info directly to command, so we create one 
service to take all kind of this process.

Although may be a bad solution, I put port info to ALIAS (because no port 
attribute in host tag) and pass the correspodent macro into command.

Now the problem which i don't know if it comes from the updates is the service 
info can be displayed when i open my nagios and the hosts i just created with 
the same IP of their parent host but different port are gone and never show 
up again.
What's the problem? Anything wrong?
Thanks,
JUn 
On Friday 28 October 2005 01:17 pm, Marc Powell wrote:
> Read this:
> http://article.gmane.org/gmane.network.nagios.user/34793/match=powell
>
> I think that's what you're looking for.
>
> --
> Marc
>
> > -----Original Message-----
> > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> > admin at lists.sourceforge.net] On Behalf Of Jun Li
> > Sent: Friday, October 28, 2005 8:22 AM
> > To: nagios-users at lists.sourceforge.net
> > Subject: [Nagios-users] pass port from host to service
> >
> > Hi Marc,
> > Do you know how to pass port info from host to service/command, so the
> > service
> > can serve multiple hosts in the .cfg file or any other solutions?
> > Thank you,
> > JUn
> >
> > On Thursday 27 October 2005 05:47 pm, Marc Powell wrote:
> > > > -----Original Message-----
> > > > From: nagios-users-admin at lists.sourceforge.net
>
> [mailto:nagios-users-
>
> > > > admin at lists.sourceforge.net] On Behalf Of Jun Li
> > > > Sent: Thursday, October 27, 2005 4:39 PM
> > > > To: nagios-users at lists.sourceforge.net
> > > > Subject: [Nagios-users] check port
> > > >
> > > > Hellow everyone,
> > > > I want check hosts with both IP and port information, how can i do
>
> it?
>
> > > There are many plugins to check IP and port information. check_tcp
>
> and
>
> > > check_udp check to see if a specified port is listening on a target
> > > host. Other plugins like check_ssh, check_pop, check_smtp, etc
>
> provide
>
> > > for more detailed testing of functionality of specific services if
>
> the
>
> > > ports are listening. If you don't know what a plugin does or how to
>
> use
>
> > > it, all the mainstream plugins support a --help command line option
>
> to
>
> > > display detailed help. If those don't meet your requirements, post
>
> more
>
> > > specific information.
> > >
> > > --
> > > Marc
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by the JBoss Inc.
> > > Get Certified Today * Register for a JBoss Training Course
> > > Free Certification Exam for All Training Attendees Through End of
>
> 2005
>
> > > Visit http://www.jboss.com/services/certification for more
>
> information
>
> > > _______________________________________________
> > > 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 the JBoss Inc.
> > Get Certified Today * Register for a JBoss Training Course
> > Free Certification Exam for All Training Attendees Through End of 2005
> > Visit http://www.jboss.com/services/certification for more information
> > _______________________________________________
> > 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 the JBoss Inc.
> Get Certified Today * Register for a JBoss Training Course
> Free Certification Exam for All Training Attendees Through End of 2005
> Visit http://www.jboss.com/services/certification for more information
> _______________________________________________
> 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 the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
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