User Tools

Site Tools


wiki:add_new_nagios_check_remote_host

Add new nagios check on remote host

Make sure you have nrpe installed on remote host. Add the new service in /usr/local/nagios/etc/services/my_checks.cfg

1. Example adding of inodes check:

define service{
    use                             generic-service
    hostgroup_name                  monitored-hosts
    service_description             Check system inodes
    check_command                   check_nrpe!check_disk_inodes
    servicegroups                   sysservices
}

2. On server add the script to /usr/local/nagios/libexec/ directory.

3. Add command to nrpe config /usr/local/nagios/etc/nrpe.cfg

...
command[check_disk_inodes]=/usr/local/nagios/libexec/check_disk_inodes
...

4. Reload nagios server and nrpe on remote server.

Tested on

  • Debian 11
  • Nagios 4.4.7
  • nrpe 3.3.0

See also

References

wiki/add_new_nagios_check_remote_host.txt · Last modified: 2024/09/19 13:11 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki