Login

Home Forum
Welcome, Guest
Please Login or Register.    Lost Password?

Having some issues
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Having some issues
#855
Having some issues 1 Year, 4 Months ago Karma: 0
I got the install finished with no errors. I did a import of my config and then ran writes. After that I did the Check Config Files option and got the following:

Warning: Host 'localhost' has no services associated with it!
Error: Host check command 'check-host-alive' specified for host 'localhost' is not defined anywhere!
Warning: Host 'localhost' has no default contacts or contactgroups defined!
Error: Contact 'nagiosadmin' has no service notification commands defined!
Error: Contact 'nagiosadmin' has no host notification commands defined!

What do I need to do to correct this? I looked at the first error:
Error: Host check command 'check-host-alive' specified for host 'localhost' is not defined anywhere!

And went to Supervision > hosts > localhost > edit and I saw this at the bottom:

Entry cannot be activated because it is used by another configuration:
Relational information for localhost of table tbl_host:

Any idea how I can fix all these errors. My configuration I imported was working fine (before nagiosql install)
sjordan
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#856
Re:Having some issues 1 Year, 4 Months ago Karma: 0
Ok, I went ahead and cleared the db and re-installed nagiosql and had it import the sample.

I am now getting this after writing all the configs:
Error: Service notification command 'notify-service-by-email' specified for contact 'nagiosadmin' is not defined anywhere!
Error: Host notification command 'notify-host-by-email' specified for contact 'nagiosadmin' is not defined anywhere!
Error: Contact '00' specified in contact group 'admins' is not defined anywhere!

Can someone please shed some light on how to get rid of this? I must be missing something simple.
sjordan
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#858
Re:Having some issues 1 Year, 4 Months ago Karma: 5
1. Have you written out all your config files with NagiosQL?

2. Have you modified your nagios.cfg like described in the manual?
martin
NagiosQL Founder
Posts: 309
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#868
Re:Having some issues 1 Year, 4 Months ago Karma: 0
Martin:

1) Yes

2) Yes. It only has these lines for loading configs:

cfg_file=/etc/nagiosql/contacttemplates.cfg
cfg_file=/etc/nagiosql/contactgroups.cfg
cfg_file=/etc/nagiosql/contacts.cfg
cfg_file=/etc/nagiosql/timeperiods.cfg
cfg_file=/etc/nagiosql/commands.cfg

cfg_file=/etc/nagiosql/hostgroups.cfg
cfg_file=/etc/nagiosql/servicegroups.cfg

cfg_dir=/etc/nagiosql/hosts
cfg_dir=/etc/nagiosql/services

cfg_file=/etc/nagiosql/hosttemplates.cfg
cfg_file=/etc/nagiosql/servicetemplates.cfg
cfg_file=/etc/nagiosql/servicedependencies.cfg
cfg_file=/etc/nagiosql/serviceescalations.cfg
cfg_file=/etc/nagiosql/hostdependencies.cfg
cfg_file=/etc/nagiosql/hostescalations.cfg
cfg_file=/etc/nagiosql/hostextinfo.cfg
cfg_file=/etc/nagiosql/serviceextinfo.cfg
sjordan
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#872
Re:Having some issues 1 Year, 4 Months ago Karma: 5
Your error messages comes from nagios itselves. While checking the configuration we start only a:

nagios -v /path/to/nagios.cfg

So, the only possibility for this issue is a wring nagios.cfg or incomplete cfg files.

As next step, i suppose to check your cfg files by hand and find out which objects are missing.
martin
NagiosQL Founder
Posts: 309
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1