Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Witam,
Niby kilka razy już uruchamiałem nagios-a , ale nigdy na localhost. Mam problem jeśli dodam do monitorowania swap lub mysql drze mordę , że nie jest zdefiniowana.
Może mnie ktoś oświecić, jak na localhoscie się to definjuje ?
define service { use generic-service host_name srvwww service_description SWAP check_command check_swap!20!10 } define service { host_name srvwww service_description MySQL check_command check_mysql!root!koloolo!127.0.0.1 use generic-service notification_interval 0 ; set > 0 if you want to be renotified }
Checking services... Error: Service check command 'check_swap' specified in service 'SWAP' for host 'srvwww' not defined anywhere! Checked 9 services. Checking hosts... Warning: Host 'localhost' has no services associated with it! Checked 2 hosts. Checking host groups... Checked 2 host groups. Checking service groups... Checked 0 service groups. Checking contacts... Checked 1 contacts. Checking contact groups... Checked 1 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 155 commands. Checking time periods... Checked 4 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: 1 Total Errors: 1 ***> 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. errors in config! ... failed! failed!
Dobry człowiek prosi o światełko :))
Ostatnio edytowany przez redelek (2013-03-27 17:21:55)
Offline