Do not use empty attributes:
define host{
host_name testserver
alias test server windows
address 192.168.0.5
-> parents
check_command check-host-alive
max_check_attempts 5
check_period 24x7
process_perf_data 0
retain_nonstatus_information 0
contact_groups nagios-admins
notification_interval 30
notification_period 24x7
notification_options d,u,r
}
Just leaave ´em out:
define host{
host_name testserver
alias test server windows
address 192.168.0.5
check_command check-host-alive
max_check_attempts 5
check_period 24x7
process_perf_data 0
retain_nonstatus_information 0
contact_groups nagios-admins
notification_interval 30
notification_period 24x7
notification_options d,u,r
}
Thomas Zimmer
Produktservice & Betrieb
Betrieb & Support
Sal. Oppenheim jr. & Cie., Frankfurt a. Main
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von javier rojas
Gesendet: Dienstag, 12. Dezember 2006 14:22
An: nagios-users@lists.sourceforge.net
Betreff: [Nagios-users] newbie questions v. 2.0
Hello,
i know that probably this is a low level questions but i have read the
documentation of nagios and still have some questions...
i have created a hosts.cfg file in order to place my servers, and i started it
with a w$ 2k3 vmware virtual server on my machine.... heres the file:
define host{
host_name testserver
alias test server windows
address 192.168.0.5
parents
check_command check-host-alive
max_check_attempts 5
check_period 24x7
process_perf_data 0
retain_nonstatus_information 0
contact_groups nagios-admins
notification_interval 30
notification_period 24x7
notification_options d,u,r
}
here's my question:
i can resolve hte name from my mahcine of the server, i did not created a
nagios-admins group, and i have the original command.cfg file, and when i
insert in my nagios.cfg the line so it should search for hosts on the new file
i cant restart nagios and i get an error CONFIG ERROR! Start aborted. Check
your Nagios configuration
heres the line:
cfg_file=/usr/local/nagios//etc/hosts.cfg
just below object configuration file
i have checked according to the docs, the files and it's order...but i really
can't find the error, i would really like to know how to add hosts and services
to nagios...
--
Ciao, Javier
linux counter #393724
GPG Key Fingerprint = 46B76CFEDB0161089D9ECB22FEFDE7EBA8C2007E
I'm doing a (free) operating system (just a hobby, won't be big and
professional like gnu)
--Linus Torvalds
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null
Diese E-Mail und eventuell beigefügte Anhänge enthalten vertrauliche
Informationen, die rechtlich besonders geschützt sein können, z.B. durch das
Bankgeheimnis. Diese Informationen sind ausschließlich für die als Adressaten
genannten Personen bestimmt. Wenn Sie nicht der angeschriebene Empfänger sind
oder diese E-Mail durch einen Übertragungsfehler erhalten haben, informieren
Sie uns bitte sofort per E-Mail, Telefon oder Fax und löschen danach
vorliegende E-Mail. Das unbefugte Kopieren dieser E-Mail, ihrer eventuell
beigefügten Anhänge sowie die unbefugte Weitergabe der enthaltenen
Informationen an Dritte sind nicht gestattet. Wir danken für Ihre Hilfe.
This e-mail message together with its attachments, if any, is confidential and
may contain information subject to legal privilege, i.e. banking secrecy. The
information contained in this e-mail or its attachments is intended solely for
the persons named as addressees. If you are not the intended recipient or have
received this e-mail in error, please advise us immediately by e-mail,
telephone or fax and delete this message. Any unauthorised copying of this
message or unauthorised distribution of the information contained herein is
prohibited. Thank you for your co-operation.
BEGIN:VCARD
VERSION:2.1
N:Zimmer;Thomas
FN:Zimmer, Thomas (Produktservices und Betrieb)
ORG:;Produktservices und Betrieb
ADR;WORK:;;;FFM (Frankfurt)
LABEL;WORK:FFM (Frankfurt)
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050930T105258Z
END:VCARD
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null