Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
I have a Nagios server and a client, they both have NRPE installed, I saw in a document in nagios website that all I had to do was create a service containing this command:
check_nrpe!check_hda1
Which I changed in the client nrpe.cfg to check_sda2 because that's the one I want to check, restarted nrpe on the client to load the changes, no problems there, but when I added the service in the Nagios server for that host, Nagios will not restart, this is what I added:
I have not tried it yet because I'm looking for a tool to help me add hosts using the Nagios GUI and set up the services using the GUI too, as I don't like to mess around with the configuration files manually to avoid typos or misspelled words, I know XI comes with all of these, but we don't have the money to spend, so do you guys know of a tool that I can use to add hosts, services, etc.
● nagios.service - Nagios Core 4.4.2
Loaded: loaded (/usr/lib/systemd/system/nagios.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2018-08-17 15:15:29 EDT; 7s ago
Docs: https://www.nagios.org/documentation
Process: 23203 ExecStopPost=/usr/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, status=0/SUCCESS)
Process: 23199 ExecStop=/usr/bin/kill -s TERM ${MAINPID} (code=exited, status=0/SUCCESS)
Process: 21986 ExecStart=/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
Process: 23207 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=1/FAILURE)
Main PID: 21988 (code=exited, status=0/SUCCESS)
Aug 17 15:15:29 nagios.example.com nagios[23207]: Check your configuration file(s) to ensure that they contain valid
Aug 17 15:15:29 nagios.example.com nagios[23207]: directives and data definitions. If you are upgrading from a previous
Aug 17 15:15:29 nagios.example.com nagios[23207]: version of Nagios, you should be aware that some variables/definitions
Aug 17 15:15:29 nagios.example.com nagios[23207]: may have been removed or modified in this version. Make sure to read
Aug 17 15:15:29 nagios.example.com nagios[23207]: the HTML documentation regarding the config files, as well as the
Aug 17 15:15:29 nagios.example.com nagios[23207]: 'Whats New' section to find out what has changed.
Aug 17 15:15:29 nagios.example.com systemd[1]: nagios.service: control process exited, code=exited status=1
Aug 17 15:15:29 nagios.example.com systemd[1]: Failed to start Nagios Core 4.4.2.
Aug 17 15:15:29 nagios.example.com systemd[1]: Unit nagios.service entered failed state.
Aug 17 15:15:29 nagios.example.com systemd[1]: nagios.service failed.