Exception processing request in Nagios

Error

I deployed a new server, after that installed NSClient++ 0.4.3 The process was simple, nothing new, install NSClient and copy nsclient.ini from other server where work that, and copy extra (not included in template) config in windows.cfg file from working server. I was little embrassed when see this message: Exception processing request: Request contained arguments (not currently allowed, check the allow arguments option). NSClient_ErrorM_001 I tried version of 0.4.1 NSClient, but same symptomes.

Solution

In the nsclient.ini the part of this, can change “true” to “1”

[/settings/NRPE/server]
#allow arguments = true (original part)
allow arguments = 1

NSClient_ErrorM_002-Solution

HTTPs check in Nagios error Invalid option – SSL is not available

When you want check https site with “./check_http –ssl google.com” command in Nagios, you may get this error “Invalid option – SSL is not available”

You will able to solve this problem, when you follow this instructions below:

# sudo apt-get install libssl-dev

(navigate to the directory that you have your nagios plugins extracted, Eximple: /home/install-username/nagios-plugins-2.0.3/)

# sudo ./configure –with-openssl=/usr/bin/openssl
# sudo make
# sudo make install
# sudo service nagios restart

Check plugin: go nagios libex folder (maybe there: cd /usr/local/nagios/libexec$)

# sudo ./check_http –ssl google.com
# HTTP OK: HTTP/1.0 302 Found – 524 bytes in 0.132 second response time |time=0.132414s;;;0.000000 size=524B;;;0

Add new Read Only User to Nagios Core

!!! Don’t forget make Snapshot or Backup from Your system !!!

I have used Ubuntu 14.04 and Nagios Core 4.0.8, and this steps worked, I tried!

# sudo htpasswd /usr/local/nagios/etc/htpasswd.users newusername
# /etc/init.d/apache2 reload

edit nagios cgi.cfg file, which located maybe here

# sudo nano /usr/local/nagios/etc/cgi.cfg

you will found this part in the cgi.cfg, and add next to it with comma

authorized_for_all_services=nagiosadmin,newusername
authorized_for_all_hosts=nagiosadmin,newusername

You have to restart nagios

# sudo service nagios reload

after reload you can able to login into nagios web page by newuser, and you have read only rights.