LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Nagios (http://www.linuxquestions.org/questions/linux-general-1/nagios-4175430275/)

pndoyleuk 10-03-2012 08:14 AM

Nagios
 
Hi
I am new to Linux and Nagios, so I hope you can help me.

After inputting the following command:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

I get the following ouput:
[root@localhost nagios-plugins-1.4.16]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 3.3.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 07-25-2011
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/localhost.cfg'...
Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
Error: Contact group 'admins' specified in service 'Current Load' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Current Users' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'HTTP' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'PING' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Root Partition' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'SSH' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Swap Usage' for host 'localhost' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Total Processes' for host 'localhost' is not defined anywhere!
Checked 8 services.
Checking hosts...
Error: Contact group 'admins' specified in host 'localhost' is not defined anywhere!
Checked 1 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 2 contacts.
Checking contact groups...
Checked 2 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 24 commands.
Checking time periods...
Checked 5 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 9

***> One or more problems was encountered while running the pre-flight check...

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.

[root@localhost nagios-plugins-1.4.16]#

I dont understand the ADmins errors.

Hopefully you can help
Thanks

acid_kewpie 10-03-2012 08:42 AM

well there is a need to define a group called admins somewhere, as it's being referenced. OR remove the references to it. AFAIR, the groups would usually be defined in the contacts.cfg file. I'd think the error is fairly self explanatory though.


All times are GMT -5. The time now is 05:31 PM.