[naemon-users] Monitoring host/services in a network
Dwijadas Dey
dwijad at gmail.com
Sat Mar 4 14:20:29 CET 2017
Hi
Chris
Thank a ton for showing a path to me for installing naemon
and its usage via NRPE. I have followed your suggestion and able to
monitor a remote host via naemon. I will post all the details and
links once i write it in a step by step method. I appreciate you for
giving a reply to the list and the time spent on it as well.
With regards
Dwijadas Dey
http://dedwijadas.in
On Sat, Mar 4, 2017 at 12:34 AM, Chris Grimmett <chris at twoway.net> wrote:
> Yes you can copy localhost.cfg manually, and afterwards, naemon (not
> thruk) will need to be restarted.
>
> To answer your question about needing to install anything on the host to
> be monitored, yes, you need to do something about that. You will need
> something like NSCA-ng or NRPE for linux hosts (choose wisely, based on
> whether you want active or passive checks), or NSClient++ for windows
> hosts. There is some configuration that needs to be done for either of
> these, which a web search should reveal information on.
>
> You can see in your localhost.cfg that a template is being used,
> indicated by the /use/ directive. That template is called local-service,
> and it's meant to be used on the same host that is running the naemon
> daemon. Don't use that template for monitoring external hosts.
>
> Instead, use a template such as generic-service for services, and
> generic-host for hosts.
>
> Also, your check_command will need modification for this new host.
> "check_local_swap!20!10" will not work on an external host, because that
> command is meant for running on the same machine that is running Naemon.
> Instead, you will need something like, "check_nrpe!check_swap"
>
> Once you've made your changes to the new config file, make sure your
> configuration changes won't break anything. If this command shows
> errors, you need to fix them before moving on.
>
> /etc/init.d/naemon configtest
>
> If there were no errors, then you can restart naemon.
>
> /etc/init.d/naemon restart
>
> Job done.
>
> --
>
> Chris Grimmett
>
> On Fri, Mar 3, 2017, at 10:37 AM, Dwijadas Dey wrote:
>> Hi
>> List users
>> I have installed naemon/thruk in CentOS 7. Now i
>> want to monitor few host and services.
>>
>> Is it possible to clone /etc/naemon/conf.d/localhost.cfg manually and
>> change the host_name pointing to IP of a host in my network - like
>>
>> define service {
>> service_description Swap Usage
>> host_name IP address of system to be monitored
>> use local-service ;
>> Name of service template to use
>> check_command check_local_swap!20!10
>> }
>>
>> Once i manually created a config for a system in a network, Whether
>> thruk will reload the new settings automatically so that the
>> monitoring information like disk usage loads in the web interface?
>>
>> For accomplishing above, shall i need to install anything in the host
>> to be monitored pointed by host_name ?
>>
>> Thanks
More information about the Naemon-users
mailing list