Monitoring websites

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Monitoring websites

Post by MSPk »

I'm trying to pass the display name of the website as an argument to a commad using the macro $SERVICEDISPLAYNAME$, however even when after saving the website URL as a display name of a server, my check fails.

My command is Check_dns_service - $USER1$/check_dns -H $SERVICEDISPLAYNAME$

I have checked the service defination and I see that the service displayname is not captured at all...!!! Do we need to activate something for nagios to write the service display name in the service defination??
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitoring websites

Post by slansing »

Do you have a display name defined in the field within the CCM? Once you have added text here, saved, and applied configuration you should now have that field present in the flat config file.
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Monitoring websites

Post by MSPk »

I got it working, do we have a macro available to define 'config name' field in the CCM

[img]
config%20name.png
[/img]
You do not have the required permissions to view the files attached to this post.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Monitoring websites

Post by sreinhardt »

This is generally just the hostname or host address of the machine being checked. However if this is used in a template or service group and not registered, you likely do not want to fill that out. If it is a single check, just use the host you would like it associated with
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Monitoring websites

Post by MSPk »

we have a server which hosts close to 150 websites,does nagios consider each website we monitor as a host or 1 host for all since all of them are on same server
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Monitoring websites

Post by sreinhardt »

That depends on how you configure it, it could be one, 50, or 150 individual hosts. I would likely suggest going with a single, unless there is a reason you would like them separated.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Monitoring websites

Post by MSPk »

Please close this post as solved.
Locked