Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service '/dev/hda1 Free Space' on host 'remotehost'
Error: Could not register service (config file '/usr/local/nagios/etc/services.cfg', starting on line 56)
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
the defination of services.cfg.
# Service definition
define service{
# Name of service template to use
use generic-service
host_name loc
service_description PING
is_volatile 0
check_period alltime
max_check_attempts 5
normal_check_interval 5
retry_check_interval 1
contact_groups nagios
notification_interval 960
notification_period alltime
notification_options w,u,c,r
check_command check_ping!100.0,20%!500.0,60%
define service{
use generic-service
host_name remotehost
service_description /dev/hda1 Free Space
check_period alltime
check_command check_nrpe!check_hda1
I don't know much about nagios, but I think in the service description part of the above service definition could be the culpirit. Try to keep '/dev/hda' in single quotes or use a string without '/'.
Not a direct answer to your question but I found it's better to use SNMP over NRPE. I used to use NRPE years ago & then switched SNMP. SNMP comes with more Linux distros; so you don't need to worry about installing just another extra package (NRPE). It's also easy to configure (as far as Nagios is concerned).
Here's copy of my snmpd.conf on client machines (it is used to check disk space, total processes, specific system processes, SNMP uptime & various other things)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.