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??
Monitoring websites
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Monitoring websites
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
I got it working, do we have a macro available to define 'config name' field in the CCM
[img][/img]
[img][/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
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.
Re: Monitoring websites
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
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.
Re: Monitoring websites
Please close this post as solved.