
There are a lot of Nagios errors out there. Way too many, right?
You as sysadmin know that for sure – return code errors, specify direct recipients, hosts unreachable.
Here you'll find quick solutions for the most common Nagios errors:
- Nagios error: Return code of x is out of bounds
- Nagios error: Error in the definition of the notification command
- Nagios error: Error in configuration file 'xxx.cfg' - Line 34 (Unknown variable)
- Nagios error: Could not open command file for update
- Nagios error: Hosts UNREACHABLE
- Nagios error: IndexError: list index out of range
And you'll find the solution to get rid of ALL Nagios errors – forever: Test PRTG as your new monitoring tool and get startet in minutes!
Nagios error 1
**"Return code of x is out of bounds"**
Quick fix
If the output of a plugin for a host or service check returns a "(Return code of x is out of bounds)" error, this usually means two things:
- The plugin you use to check the service or host does not return a correct return value when it terminates
- The path to the plugin is invalid (e.g. the program or script does not exist). This is usually the case if there is an error with the return value 127. If you get this error, you need to check your command definition and make sure that the path to the plugins is correct (and that you really are installed on your system at this point).
Proper fix
Switch to PRTG: PRTG automatically discovers and monitors all your network devices, bandwidth and traffic. Test now for free and get rid of all your Nagios errors like this most common one – forever.
See why monitoring with PRTG is like working in paradise.

Nagios error 2
**"mail: Null names are not allowed"**
**"You must specify direct recipients with -s, -c, or -b."**
Quick fix
Error in the definition of the notification command.
Make sure that the syntax you use to call /bin/mail (or where/how your mail program should be) is correct in the definition of the notification command for your system.
Proper fix
Switch to PRTG: PRTG automatically discovers and monitors all your network devices, bandwidth and traffic. Test now for free and get rid of all your Nagios errors like this most common one – forever.
See why monitoring with PRTG is like working in paradise.

Nagios error 3
**"Error in configuration file 'xxx.cfg' - Line 34 (Unknown variable)"**
Quick fix
Make sure that you pass the path to your main configuration file on the command line.
The correct syntax should look like the following command (possibly changed something for your system, of course):
**/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg**
Proper fix
Switch to PRTG: PRTG automatically discovers and monitors all your network devices, bandwidth and traffic. Test now for free and get rid of all your Nagios errors like this most common one – forever.
See why monitoring with PRTG is like working in paradise.

Nagios error 4
**"Could not open command file for update"**
Quick fix
Usually a problem with directory and/or file permissions.
- Make sure that you have created a directory for the command file.
- Make sure that you have restarted your web server so that it recognizes the new group permissions you have assigned.
Proper fix
Switch to PRTG: PRTG automatically discovers and monitors all your network devices, bandwidth and traffic. Test now for free and get rid of all your Nagios errors like this most common one – forever.
See why monitoring with PRTG is like working in paradise.

Nagios error 5
**"Hosts UNREACHABLE"**
Quick fix
You have activated the notify_unreachable option in the host definition(s).
If you do not want to be notified when a host is unreachable, you only need to deactivate this option in the host definition.
Proper fix
Switch to PRTG: PRTG automatically discovers and monitors all your network devices, bandwidth and traffic. Test now for free and get rid of all your Nagios errors like this most common one – forever.
See why monitoring with PRTG is like working in paradise.

Nagios error 6
**"IndexError: list index out of range"**
Quick fix
Perform a file check one at a time.
Details can be found in your log file - "Check log for details"
Proper fix
Switch to PRTG: PRTG automatically discovers and monitors all your network devices, bandwidth and traffic. Test now for free and get rid of all your Nagios errors like this most common one – forever.
See why monitoring with PRTG is like working in paradise.


With PRTG you'll never have to deal with
Nagios errors again. Ever.
Monitor all the systems, devices, traffic, and applications in your IT infrastructure.
Everything is included with PRTG; there is no need for additional plugins or downloads.
PRTG is a powerful and easy-to-use solution, which is suitable for businesses of all sizes.
Our Users Give Top Ratings for Monitoring With Paessler PRTG




