Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I get this error in the web page Error: Could not read object configuration data!
and in console gilmata@ServI:$ service nagios start Starting nagios:Contraseña: su: Fallo de autenticación ERROR: Could not create or update ‘/usr/local/nagios/var/nagios.configtest’
Hi, Thank you for the very good article !! I just wanted to add that the installation of the Nagios tools is missing:
In short the missing commands: cd ~ wget https://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz tar -xzf nagios-plugins*.tar.gz cd nagios-plugins-2.2.1/
./configure --with-nagios-user=nagios --with-nagios-group=nagios make make install
Thanks and best regards Manfred
Thank you so much for writing these things in a very clear manner. we found this site very useful for all our searches :)
Hello go followed the guide without having any mistake. I can run from the terminal to start the nagios service without problems, but when I access nagios through we the system says “nagios not found”. I also opened port 80 for the ip address of the server on my router. what is the problem?. server apache2 is ready. if i do access ti my addres ip with web browser it is ready
I am stuck on the end of Step 3. I have made it through all steps until this without problems. When I try to enable the service:
sudo systemctl enable /etc/systemd/system/nagios.service
I get this error:
Failed to execute operation: File exists
I am still able to start the Nagios, however I just get a blank white screen after authentication.
Any ideas?
Thank you so much for this tutorial! I have 1 question about when you install the check_nrpe plugin… I need to modify the check_nrpe.cfg because a couple of my servers on my network are old and in order for it to work I need to modify the check_nrpe command to use -n. I can’t find this file so I am wondering how to go about this.
To be specific: my issue is in my
define service{ check_nrpe!something }
I would need check_nrpe to use the -n… since to get it to work I need to do the commands like this from the nagios server:
/usr/local/nagios$ libexec/check_nrpe -H 192.168.0.21 -n -c check_mem
How do I go about that? :)
Thanks!
I have completed the steps upto Step-3. When accessing the Nagios web interface in step-4, I am getting blank screen after putting user name and password. What is breaking in the configuration?
Thanks
Apache is not starting after changes on sites enabled, ScriptAlias /nagios/cgi-bin “/usr/local/nagios/sbin”
<Directory “/usr/local/nagios/sbin”> SSLRequireSSL Options ExecCGI AllowOverride None <IfVersion >= 2.3> <RequireAll> Require all granted
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</RequireAll>
</IfVersion> <IfVersion < 2.3>
Order deny,allow
Deny from all
Allow from 127.0.0.1 192.168.1.6
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</IfVersion> </Directory>
Alias /nagios “/usr/local/nagios/share”
<Directory “/usr/local/nagios/share”> SSLRequireSSL Options None AllowOverride None <IfVersion >= 2.3> <RequireAll> Require all granted Require all granted
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</RequireAll>
</IfVersion> <IfVersion < 2.3>
Order deny,allow
Deny from all
Allow from 127.0.0.1 192.168.1.6
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</IfVersion> </Directory>
Remote Client: Showing host is not allowed
ubuntu@ip-172-31-1-238:/usr/local/nagios/libexec$ sudo systemctl status nrpe
● nrpe.service - Nagios Remote Plugin Executor
Loaded: loaded (/lib/systemd/system/nrpe.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2019-08-05 07:26:13 UTC; 36min ago
Docs: http://www.nagios.org/documentation
Process: 15332 ExecStopPost=/bin/rm -f /usr/local/nagios/var/nrpe.pid (code=exited, status=0/SUCCESS)
Main PID: 15336 (nrpe)
Tasks: 1
Memory: 808.0K
CPU: 11ms
CGroup: /system.slice/nrpe.service
└─15336 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -f
Aug 05 07:26:13 ip-172-31-1-238 nrpe[15336]: Server listening on 0.0.0.0 port 5666.
Aug 05 07:26:13 ip-172-31-1-238 nrpe[15336]: Server listening on :: port 5666.
Aug 05 07:26:13 ip-172-31-1-238 nrpe[15336]: Listening for connections on port 5666
Aug 05 07:26:13 ip-172-31-1-238 nrpe[15336]: Allowing connections from: 172.31.8.319,127.0.0.1,::1
Aug 05 07:26:36 ip-172-31-1-238 nrpe[15508]: Host 172.31.8.139 is not allowed to talk to us!
Aug 05 07:26:42 ip-172-31-1-238 nrpe[15562]: Host 172.31.8.139 is not allowed to talk to us!
Aug 05 07:45:23 ip-172-31-1-238 systemd[1]: Started Nagios Remote Plugin Executor.
Aug 05 07:45:37 ip-172-31-1-238 nrpe[22799]: Host 172.31.8.139 is not allowed to talk to us!
Aug 05 07:46:22 ip-172-31-1-238 nrpe[23111]: Host 172.31.8.139 is not allowed to talk to us!
Aug 05 08:02:11 ip-172-31-1-238 nrpe[29244]: Host 172.31.8.139 is not allowed to talk to us!