NAgios Setup errors
Carroll, Jim P [Contractor]
jcarro10 at sprintspectrum.com
Fri Jan 3 18:14:18 CET 2003
This is a bit speculative, so if you find a better answer, go with that. Here are a couple things to try:
1) Check the hostgroup definition paragraph for hidden/special characters. (In vi, ":set list".)
2) Try simplifying the hostname to one without dots (just as an experiment) in both the hosts.cfg and hostgroups.cfg files.
Restart nagios and see if that's any different.
jc
> -----Original Message-----
> From: rvelez [mailto:rvelez at sunguruz.com]
> Sent: Friday, January 03, 2003 10:07 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] NAgios Setup errors
>
>
> Hi Guys,
>
> So I got nagios installed fine and started doing some
> configs. When i
> run /usr/local/nagios/bin/nagios -d
> /usr/local/nagios/etc/nagios.cfg I get
> this error:
>
> Reading configuration data...
>
> Error: Could not find host 'nsmx1.sunguruz.com'
>
> Error: Could not expand member hosts specified in hostgroup
> (config file
> '/usr/local/nagios/etc/hostgroups.cfg', line 21)
>
> In my hostgroups.cfg i have:
>
> # 'sun-servers' host group definition
> define hostgroup{
> hostgroup_name sun
> alias Sun-Servers
> contact_groups SystemAdmins
> members nsmx1.sunguruz.com
> }
>
> It says I have an error on line 21, but line 21 is the define
> hostgroup{
> piece of it. Here is my hosts.cfg:
>
> # 'sun-servers' host definition
> define host{
> host_name nsmx1.sugnuruz.com
> alias nsmx1 Sun Servers
> address 192.168.0.2
> check_command check-host-alive
> max_check_attempts 5
> notification_interval 60
> notification_period 24x7
> notification_options d,u,r
> }
>
> IS thier somthing I am missing? Thanks for your help
>
> -Radames
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
More information about the Users
mailing list