Page 2 of 2

Re: Monitoring websites

Posted: Tue Jul 02, 2013 11:43 am
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??

Re: Monitoring websites

Posted: Tue Jul 02, 2013 1:26 pm
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.

Re: Monitoring websites

Posted: Tue Jul 02, 2013 1:44 pm
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]

Re: Monitoring websites

Posted: Tue Jul 02, 2013 2:36 pm
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

Re: Monitoring websites

Posted: Tue Jul 02, 2013 3:26 pm
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

Re: Monitoring websites

Posted: Tue Jul 02, 2013 3:40 pm
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.

Re: Monitoring websites

Posted: Wed Mar 26, 2014 10:58 am
by MSPk
Please close this post as solved.