äœããã®çç±ã§ãé©ãã»ã©icinga2ã«ã€ããŠã»ãšãã©æžãããŠããããããããäœããã®åœ¢ã§æžãããŠãããšããäºå®ã¯ãäžè¬çãªæŠå¿µãäœæããŸããã ããå Žæã§ã¯ã¹ã¯ãªãããæžãæ¹æ³ãæžããå¥ã®å Žæã§ã¯ãã®å šäœãã€ã³ã¹ããŒã«ããæ¹æ³ãæžããŸãããåŸã§ãããã©ããããã¯æ確ã§ã¯ãããŸããã
ç§èªèº«ã¯2013幎ã®åãããã©ããã§icingaã䜿çšããŠããŸããããæåã®ããŒãžã§ã³ãããªããNagiosããããã»ã©é ãã¯ãããŸããã§ããã2çªç®ã®ããŒãžã§ã³ã®ãªãªãŒã¹ã§ãå€ãã®å€æŽãå ããããŸããã
次ã«ãããããã¹ãŠããã°ããã€ã³ã¹ããŒã«ããæ¹æ³ãšãããã«èå³æ·±ãããšã«ã次ã«äœããã¹ããã説æããããšæããŸãã
å°ã説æ
Icinga2㯠ããµãŒããŒããµãŒãã¹ãããªã³ã¿ãŒãã«ãŒã¿ãŒãªã©ãLinuxãŸãã¯Windowsãååšããå ŽæããŸãã¯ååšããªãå Žæã®ç¶æ ãç£èŠããããã«å¿ èŠã§ãã
æåã®ããŒãžã§ã³ãNagiosã®ã«ãŒãã«ã§åäœããå Žåã2çªç®ã®ããŒãžã§ã³ã§ã¯ãã¹ãŠãæ°ããæ¹æ³ã§è¡ããããããé«éã§çŸãããã®ã«ãªããŸããã ãããè¡ãããã«ãicingaããŒã ã¯ã«ãŒãã«ãæžãçŽããªããã°ãªãããä»ã§ã¯å€ãã®åŽåãªãã§ãåæ£ã·ã¹ãã ãŸãã¯åããã®ãäœæã§ããŸãããããã«ã¯ã©ã¹ã¿ãŒãè¿œå ã§ããŸãã
ãã ããããã¯å€§èŠæš¡ãªãããã¯ãŒã¯ïŒ1ã€ã®ã»ã°ã¡ã³ãã§10kãè¶ ããïŒã«å¯ŸããŠè¡ãããŸãã 2çªç®ã®ããŒãžã§ã³ããªãªãŒã¹ãããã°ããã®ãšãããã¹ãã§ã¯ã1å°ã®ãµãŒããŒã1ç§ãããæ倧10kããããåŠçã§ããããšãèªã¿ãŸããããµãŒããŒã®æ°ã¯ããŸãå€ããªãããã確èªã§ããŸããã
å§ãŸããšå°ãã®çè«
2013幎ãåœç€Ÿã§ã¯ãç£èŠã·ã¹ãã ãäœæããŠé¡§å®¢ããã€ã³ã¹ããŒã«ããã·ã¹ãã ã«åé¡ãçºçããå Žåã«ãµãŒãã¹ã®ããã«é¡§å®¢ãããéãåŸãããšã«ããŸãããã·ã¹ãã ã«ã¢ã¯ã»ã¹ããæ¹æ³ã«ã€ããŠçåãçããŸããã
Icingaã«ã¯ãã·ã¹ãã ã®ã¹ããŒã¿ã¹ã確èªãã2ã€ã®æ¹æ³ããããŸããããŒããããã¯ããŠãµãŒããŒã«ã¢ã¯ãã£ãã«ã¢ã¯ã»ã¹ããããããŒããéããŠããã«äœããå°çããã®ãåŸ ã¡ãŸãã ãããã£ãŠãããã¯ã¢ã¯ãã£ãã¡ãœããããã³ããã·ãã¡ãœãããšåŒã°ããŸãã ã»ãšãã©ã®å Žåãã¢ã¯ãã£ããªæ¹æ³ã䜿çšãããŸãããçç±ã¯ããããŸããã ãŸããã€ã³ã¿ãŒãããã§ã¯ãäž»ã«ã¢ã¯ãã£ããªèª¿æ»ã®èª¬æããããŸãã
ã¢ã¯ãã£ãã¢ãŒã
ããã«ã¯ããã€ãã®ãªãã·ã§ã³ããããicinga2ãã£ã¬ã¯ã¿ãŒãšWindowsãŸãã¯Linuxã®ã¯ã©ã€ã¢ã³ãã䜿çšã§ããŸãã ããããã€ã³ã¹ããŒã«ããåŸãicinga2ã®æ§æãŸãã¯ãã³ãã¬ãŒããäœæããå¿ èŠããããŸãã ãã®å Žåãicinga2ã¯ãµãŒããŒã«ã¢ã¯ã»ã¹ããã¯ã©ã€ã¢ã³ãããŸãã¯äœããã®åœ¢ã§ä»»æã®ã¹ã¯ãªãããä»ããŠãã§ãã¯ããŸãã 以åã¯NRPEãããã«äœ¿çšãããŠããŸããããä»ã§ã¯ããããŸããã
ã¢ã¯ãã£ããªã¡ãœããã«ã¯2ã€ã®å€§ããªãã€ãã¹ããããå®éã«ãã¹ãŠã決å®ããŸããã
1.ãµãŒããŒåŽã§ããŒããéãå¿ èŠããããŸããç°ãªããããã¯ãŒã¯ã®å Žåã¯ãããŒã転éãæ§æããŸããåãµãŒããŒã«ã¯ç¬èªã®ããŒãããããŸãã
2.åã·ã¹ãã ã®ã»ããã¢ããã¯ããã·ãããŒãžã§ã³ãããè€éã§ããããã¯ãåã±ãŒã¹ã«ã³ãã³ããåŠæ¹ããããæ¢æã®ãã³ãã¬ãŒãã䜿çšããå¿ èŠãããããã§ãããã¡ããäºåã«è¡ãå¿ èŠããããŸãã
ããã·ãã¢ãŒã
ãã®å ŽåããµãŒããŒã®icinga2åŽã§NSCAã®ããŒã5667ãéãããIcinga2 APiïŒããŒã5665ïŒããªã³ã«ããŠãã·ã¹ãã ã®ã¹ããŒã¿ã¹ãååŸãããŸã§åŸ ã¡ãŸããicingaã¯ãã¹ããŒã¿ã¹ãæåŸã«æŽæ°ãããã¹ããŒã¿ã¹ãæŽæ°ãããŠããªãå Žåããæéãicingaã¯ãããäžæãšããŠããŒã¯ããŸãã ãããŠããã¡ãããè»èã«ããšã®ãªãã©ãã-ã«ãŒã¿ãŒãããªã³ã¿ãŒããã§ãã¯ããå¿ èŠãããå ŽåããŸãã¯SNMPãç §äŒããããã«ã©ããã§å¿ èŠãªå Žåãããã·ãããŒãªã³ã°ã§ã¯ãããè¡ãããšã¯ã§ããŸããã ããããããã§ã¯æŸèæãæžãããšãã§ããŸããåããããã¯ãŒã¯å ã®ãµãŒããŒã®1ã€ãSNMPãä»ããŠç §äŒããã¹ããŒã¿ã¹ãicingaã«éä¿¡ã§ããŸããããã®ããã«ã¯ã¹ã¯ãªãããæžãå¿ èŠããããŸãã
NSCAã¯ããæ代é ãã®ãœãªã¥ãŒã·ã§ã³ã§ãããWindowsã·ã¹ãã ã®å Žåãé©åãªä»£æ¿æ段ã¯ãããŸããïŒãã®ãããæã§å€ããè¡ãå¿ èŠã¯ãããŸããïŒã Linuxã§ã¯ããã§ã«å€ãã®ã¹ã¯ãªãããäœæããŠãããIcinga2 Apiã䜿çšããŠããŸãã æè¿ã§ã¯ãnode.jsã®ã©ã€ãã©ãªãäœæããŸããïŒä»¥äžã®ãªã³ã¯ïŒã
ã€ã³ã¹ããŒã«ïŒïŒ
äžèšã§æ¢ã«ç解ããããã«ãIcinga2ãã€ã³ã¹ããŒã«ããããã·ãã¢ãŒãã§æ§æããŸãã
Icinga2ã®å Žåã ã³ã³ãã㌠ïŒdockerïŒãäœæããŸããã
ã³ã³ããã®äžèº«ïŒ
1. Icinga Web 2-ã¹ããŒã¿ã¹ã衚瀺ã§ããWebã€ã³ã¿ãŒãã§ã€ã¹
2.ã°ã©ãã¡ã€ã-çŸããã°ã©ãã衚瀺ããŸã
3. Icinga2 Classic UI-guiããã ããæåã®ããŒãžã§ã³ãããNagstamonïŒWindowsïŒãŸãã¯adagiosïŒAndroidïŒã®ãããªå€ãããã°ã©ã ã䜿çšã§ããŸãã
4. = ADãšã®çµ±åããã ããå¿ èŠãªãããšãå€æãããããé·ãéãã¹ãããŠããŸããããæ©èœããªãããšãå€æããå ŽåããããŸãã
5. NSCAãµãŒããŒ-WindowsãŸãã¯nscaã䜿çšãããŠãŒã¶ãŒããã®ã¡ããªãã¯ãåãå ¥ããããã«å¿ èŠ
6. Icinga2 API-icingaã®APIã ã¹ããŒã¿ã¹ã®èšå®ããã¹ããšãµãŒãã¹ã®è¿œå /åé€ãªã©ãããããããšãã§ããŸãã
ããã«ãŒã䜿çšããããšããªã人ã®ããã«ãubuntuïŒ04.16ïŒã«ããããã¹ãŠãã€ã³ã¹ããŒã«ããæ¹æ³ã瀺ããŸãã æåã«ãDockerãé©åã«èšå®ããŸãã䟿å®äžãdocker-composeãã§ããŸãã
sudo apt install docker.io docker-compose -y
次ã«ãActive Directoryãªãã§Icinga2ã䜿çšããŠã³ã³ãããèµ·åããŸãã
sudo docker run -i -p 80:80 -p 5667:5667 -p 5665:5665 -p 8080:8080 -h monitoring.example.com \ -v /storage/icingaweb2:/icingaweb2 -v /storage/icinga2:/icinga2conf -v /storage/mysql:/mysql \ -v /storage/graphite:/var/lib/graphite/whisper \ -e NOTIFICATION_INTERVAL=0 -e GRAPHITE_HOST=192.168.42.64:8080 \ -e APIUSER=root -e APIPASS=PASS -e ICINGA_PASS="icinga" \ -e MAILSERVER="mail.example.com" -e EMAILADDR="user@example.com" -e NSCAPASS="pass" -e NSCAPORT="5667" \ --name icinga2 -t adito/icinga2
hub.docker.comã®èª¬æã«ã¯ãADããéå§ãããªãã·ã§ã³ããããŸãã ãã¡ããåç §ããŠãã ãã ã
å€æ°ããã³ãã®ä»ã®èª¬æ
ããŒã
80-ããã¯ç解ã§ãããããã§ã¯ãã¹ãŠãèŠãããšãã§ããŸã
5667-NSCAããŒãããããã誰ããå¿ èŠãšããªã
5665-Icinga2 API
8080-icinga2ãã°ã©ããæç»ããããã«ã°ã©ãã¡ã€ãããŒãžã«ã¢ã¯ã»ã¹ãããããã°ã©ãã¡ã€ãããŒãžãéããŠããå¿ èŠããããŸãã
å€æ°ïŒ
ã-Hã-ãã¹ãåããã®åŸããŒãžã«è¡šç€º
ã-V / storage ...ã-æ§æãšããŒã¿ããŒã¹ãä¿åãããŸã
ãGRAPHITE_HOSTãã¯ãã³ã³ãããæ©èœãããµãŒããŒã®IPã§ãããã®ã¢ãã¬ã¹ãéããŠãicinga2ã¯ã°ã©ãã¡ã€ããæããŸã
ãAPIUSERãã¯æ確ã§çå®ã§ãã ã0ilkasjdf09123malskdfãã®ãããªãã®ãšäº€æããããšããå§ãããŸã
ãAPIPASSããæ確ã§ã
ãICINGA_PASSã-ãŠãŒã¶ãŒãicingaadminãã®ãã¹ã¯ãŒã
ãMAILSERVERãã¯ãã¡ãŒã«ãµãŒããŒããããã¹ãã§ããç§ã¯åããããã¯ãŒã¯äžã§äº€æããŠããããããªã¬ãŒãšããŠã®ã¿æ©èœããŸã
ãEMAILADDRãã¯ãicinga2ã䜿çšããã¢ãã¬ã¹ã§ãã
ãNSCAPASSããšãNSCAPORTãã¯æããã ãšæããŸãã
ãã®åŸãèªåèªèº«ãç£èŠããç£èŠãµãŒããŒãæ©èœããŸãã ããªãã¯ããã«äœãã©ã®ããã«ããããèŠãããã«è¡ãããšãã§ããŸãã
GRAPHITE_HOSTã§å ¥æå¯èœïŒ80
GRAPHITE_HOST / icinga2-classicuiã«ãå€ãããŒãžã§ã³ããããŸãã ãã®ããŒãžã§ã³ã䜿çšããŠãããšãã°anagã«æ¥ç¶ããé»è©±ã§ã¹ããŒã¿ã¹ãç£èŠã§ããŸãã ãŸãã¯ããŸã ã³ã³ãã¥ãŒã¿ãŒã®nagstamonããããŸããIcinga2APIãä»ããŠæ¢ã«ã¢ã¯ã»ã¹ã§ããããã§ãããªãã·ã§ã³ããããŸãããããŸãèŠãŠããŸããã
ã¡ãŒã«ãèŠãããã䜿ãæ¹ãè¯ããšããã«èšããŸãããªããªãããããã¯ãããããããããã¹ãŠãéåžžã«çŽ°ãã調æŽããå¿ èŠãããããã§ãã
誰ããã³ã³ããã§äœæ¥ããããªãå Žåã¯ã gitãªããžããªããã€ã³ã¹ããŒã«ã¹ã¯ãªããïŒicinga2.shãå¿ èŠïŒãåãåºããŠå®è¡ããããšãã§ããŸããããã¯ãŸãåäœããŸããããä¿¡é Œæ§ã®é«ãäœãã®ããã«ãã¹ã¯ãŒããä¿®æ£ããå¿ èŠãããã ãã§ãã
ããã§ããã¹ãçšãšãµãŒãã¹çšã®2ã€ã®ãã³ãã¬ãŒããã³ã³ããã«è¿œå ããå¿ èŠããããŸãã ã³ã³ããã®èµ·åæã«èšå®ãã/ storage / icinga2ãã©ã«ããŒã«é 眮ããå¿ èŠããããŸãã
ãã¹ã-passive-host.conf-ã¯ä»»æã®ååã§åŒã³åºãããšãã§ããŸããã.confã§çµããå¿ èŠããããŸã
template Host "passive-host" { max_check_attempts = 2 check_interval = 300s retry_interval = 200s enable_active_checks = true enable_passive_checks = true check_command = "passive" vars.notification["mail"] = { groups = [ "icingaadmins" ] } }
ãµãŒãã¹ïŒ
template Service "passive-service" { max_check_attempts = 2 check_interval = 300s retry_interval = 200s enable_active_checks = true check_command = "passive" vars.notification["mail"] = { groups = [ "icingaadmins" ] } }
ãã³ãã¬ãŒãã®ç°¡åãªèª¬æ
äž¡æ¹ããšã©ãŒã瀺ãå Žåãã¹ããŒã¿ã¹ã2åæ¥ããŸã§åŸ æ©ããã¹ããŒã¿ã¹ããšã©ãŒã«å€ãããŸãã
enable_active_checks = trueãå¿ èŠã§ãããµãŒããŒããã¹ããŒã¿ã¹ãåä¿¡ãããªãå Žåã¯ããäžæãã«å€æŽããŠãã ããã
çµæã2åééã£ãŠããå Žåã¯ãã¡ãŒã«ãéä¿¡ããŸãã ã¡ãªã¿ã«ãçµéšããèšããšãç¹ã«æåã¯ãæåãéåããããšãªã倧éã«æ³šãããŠãããšèšããŸãããŸããã©ã®ãµãŒãã¹ããã§ã«åã³ç²åŸããã®ããããã§ãªãã®ãã¯å¿ ãããæ確ã§ã¯ãããŸããã ãããã£ãŠãnagstamonã䜿çšããããåžžã«ããŒãžã確èªããããšããå§ãããŸãã
以åã«ããã€ãã®æçŽãããã«OTRSã«éãããããããã±ãããäœæããããšãèŠããŠããŸããããã¯ãŸã䟿å©ã§ãããã¯ã©ã€ã¢ã³ãã¯ããã«ãã¹ãŠãèŠãŸããã
ãããã®2ã€ã®ãã¡ã€ã«ã¯ãã/ storage / icinga2ããã©ã«ããŒã«é 眮ããã³ã³ãããŒãŸãã¯ãã®äžã®icingaãµãŒãã¹ãåèµ·åããå¿ èŠããããŸãã
sudo docker exec -it icinga2 service icinga2 restart
ããã ãã§ããã³ãã¬ãŒããè¿œå ãããã·ã¹ãã ãšå¿ èŠãªãã®ãã¹ãŠãè¿œå ã§ããããã«ãªããŸããã
次ã¯ïŒ
ååãšããŠããã以åã«æ°ãããã®ã¯äœããããŸããã§ããããä»åºŠã¯ããã·ããªãã·ã§ã³ãåªããŠããçç±ã瀺ããŸãã
衚瀺äž
çªçš
Windowsã«ã¯ãçšæãããŠããclint - nsclient ++ããããŸãã NSCAãä»ããŠããŒã¿ãéä¿¡ããããã·ããšã¢ã¯ãã£ãã®äž¡æ¹ã®ããŒãžã§ã³ã§æ©èœããŸããIcinga2ã³ã³ãããŒã§ã¯ããã®ãµãŒãã¹ã¯ã¢ã¯ãã£ãã§äœ¿çšã§ããŸããããŒã5667ãä»ããŠã¢ã¯ã»ã¹ããå¿ èŠããããŸãããµãŒãã¹ã®ã¹ããŒã¿ã¹ã確èªããããã€ãã³ããã°ãããã£ã¹ã¯ãããã»ããµãã¡ã¢ãªãªã©ãç£èŠãããã§ããŸãã ãŸããå¿ èŠã«å¿ããŠãnscaãä»ããŠåºåãéä¿¡ã§ããä»»æã®ã¹ã¯ãªãããå®è¡ã§ããŸãïŒæåã«ã¹ã¯ãªãããäœæããå¿ èŠããããŸããããšãã°ãlsi raidçšã«äœæããŸããïŒã
ã¯ã©ã€ã¢ã³ãã«icingaãã€ã³ã¹ããŒã«ããããšããããšããã§ã«æžããŸããããnsclient ++ã®èšå®ãæžãã®ã¯ããªãé¢åã§ãåãµãŒããŒã«æžã蟌ãå¿ èŠããããŸãããŸããicingaãèšå®ãæžãå¿ èŠããããŸãã
ããããã¹ãŠåçŽåããŠããã¹ããšicingaçšã®ããã2ã€ã®ãã¡ã€ã«ãçæã§ããå°ããªããã°ã©ã ãäœæããŸããïŒãã®åŸãAutoItããã§ããŸããã§ããïŒã ããã°ã©ã ã¯ãã¡ã ïŒãªãªãŒã¹ã§ããŠã³ããŒãå¯èœïŒããAgenãïŒã¢ã©ãŒããžã§ãã¬ãŒã¿ãŒïŒãšåŒã°ããŸãã
解ååŸãconfig.xmlã調æŽããå¿ èŠããããŸã
<?xml version="1.0" encoding="UTF-16"?> <CONFIG> <monserver> <interval>2</interval> <adresse>monitoring.server.local</adresse> <password>NSCAPASS</password> </monserver> <konfiguration> <htemplate>passive-host</htemplate> <stemplate>passive-service</stemplate> <hgruppe>HOSTGROUP</hgruppe> <sgruppe>SERVICEGROUP</sgruppe> </konfiguration> </CONFIG>
interval-ã¹ãã£ã³æéïŒåïŒ
ã¢ãã¬ã¹-dnsãŸãã¯ip icingaãµãŒããŒ
password-NSCAãã¹ã¯ãŒãïŒã³ã³ãããäœæãããšãã«äžã§æžãããïŒ
htemplate-ãã¹ãã®ãã³ãã¬ãŒãã®ååïŒæ¢ã«é«ãååã§ããïŒ
stemplate-ãµãŒãã¹ã®ãã³ãã¬ãŒãã®åå
hgroup-ãã¹ãã®ã°ã«ãŒããããšãã°ãå ±æãããå Žåã ããšãã°ããã¹ãã£ã³ã°ãDataCenter2ãªã©ããŸãã¯å¥ã®ã¯ã©ã€ã¢ã³ãåãã§ããç§ã®å Žåã¯ããã§ããã ãšããã§ããŠãŒã¶ãŒã1ã€ã®ã°ã«ãŒãã«ãã€ã³ãã§ããŸã
sgroup-äžèšãšåãããµãŒãã¹ã®ã¿
ããã§ãAgenãå®è¡ããŠãsource.txtãšconfig.xmlãé 眮ãããŠãããã©ã«ããŒãéžæã§ããŸãã 次ã®ããã«ãªããŸãã
æ å ±ã®äžéšã¯congig.xmlããååŸãããŸããããã¹ããšã€ãªã¢ã¹ããšããã¹ã衚瀺åããè¿œå ããã ãã§ãïŒããŒãžã«è¡šç€ºãããŸãïŒã
å·ŠåŽã®æ å ±ã¯ãsource.txtããååŸãããŸãã 䜿çšæ¹æ³ïŒ
å·ŠåŽã§ããã®ãµãŒããŒã§åäœãããã®ãéžæããŸãã ããšãã°ããwinExchange2013ãããã³ãeveExchange2013ããéžæãããã¹ããšã€ãªã¢ã¹ïŒã¹ããŒã¹ãªãïŒããã³ãã¹ã衚瀺åïŒã¹ããŒã¹ããïŒãæžã蟌ã¿ãŸãããã®ããã®icingaæ§æãå¿ èŠãªå Žåã¯ãããã¯ã¹ããªã³ã«ããŸãã ãããã®æäœåŸã2ã€ã®ãã¡ã€ã«ã衚瀺ãããŸãã
hostalias.conf-ã³ã³ããïŒ/ storage / icinga2ïŒã«ã³ããŒããŠãicingaãåèµ·åããå¿ èŠããããŸã
nsclient.ini-nsclient ++ãã€ã³ã¹ããŒã«ãããŠãããã©ã«ããŒã«ã³ããŒããŸã
source.txtã«å«ãŸãããã®ã å®éãAgenå šäœã¯ãã®ãã¡ã€ã«ãäžå¿ã«å±éããããã¹ãŠã2ã€ã®éšåã«åå²ãããŸãã
ãWinã-WindowsãµãŒãã¹
ãã€ãã-ã€ãã³ããã°ããã®ã€ãã³ã
ã€ãŸãããwinExchange2013ããéžæãããšãExchange 2013ã«é¢é£ãããã¹ãŠã®ãµãŒãã¹ãæ§æã«è¿œå ãããç£èŠãããŸãã ãEveID Exchange 2013ããéžæãããšãã€ãã³ããã°ããã®ã€ãã³ããããã«è¿œå ãããŸãã
ã€ãŸãããããå®è¡ããŠ[OK]ãæŒããšããnsclient.iniããšãSERVER.confããšãã2ã€ã®ãã¡ã€ã«ãäœæãããŸãã ãã®åŸãnsclient.iniãnsclient ++ãã€ã³ã¹ããŒã«ãããŠãããã©ã«ããŒã«å ¥ããSERVER.confãã³ã³ãããŒã«è¿œå ããŸãïŒpassive-host.confããã³passive-service.confã®å ŽåïŒã ãã®åŸããã¹ãŠãåèµ·åããå¿ èŠããããŸã-ãnscaããµãŒãã¹ãåèµ·åããicinga2ãµãŒãã¹ãåèµ·åããŸãã
å¯äžã®ãã€ã³ãã¯ãsource.txtã®ãµãŒãã¹ããã€ãèªã§ãããããååãå€æŽããå¿ èŠãããããšã§ãã
äŸïŒ
MSExchangeADTopologyïŒWindows_Dienst_Ex_AD_Topology
MSExchangeADTopologyã¯ãã·ã¹ãã èšèªã«é¢ä¿ãªããã©ãã§ãåãéšåã§ããã2çªç®ã®éšåã¯ã©ãã§ãç°ãªããŸãã
å®éã«ã¯ãvidnovsã«ã€ããŠã®ãã¹ãŠã§ãã
Linux
ããã§ã¯ãnsclient ++ã«äŒŒãã¯ã©ã€ã¢ã³ãããªãããããã¹ãŠãããè€éã§ãã 3ã€ã®æ¹æ³ããããŸããsend_nscaãèšå®ããŠãããã¹ã¯ãªãããäœæããsend_nscaãä»ããŠã¹ããŒã¿ã¹ãéä¿¡ã§ããŸããã¹ã¯ãªããã¯ãã¯ã©ãŠã³ã§2åããšã«å®è¡ãããŸãã
2çªç®ã®æ¹æ³ã¯ãicinga2 apiãä»ããŠåãããŒã¿ãéä¿¡ããããšã§ãã ããšãã°ã2çªç®ã®ãªãã·ã§ã³ã䜿çšããŸããããã«ã¯node.jsã䜿çšãããã®ã¢ãžã¥ãŒã«ãäœæããŸãããããã¯npmjs.comã«ãããŸãã
3çªç®ã®æ¹æ³ã¯ãæ¢è£œã®ã¹ã¯ãªããã䜿çšããã¢ã¯ãã£ãããŒãªã³ã°ãèšå®ããããšã§ãã ããããããã§ã¯ãããããŸã£ããåé¿ããããšããããã説æããŸããã
ç§ã®ä»äºã§ã¯ã»ãšãã©æä»çã«Linuxã䜿çšããŠãããšããäºå®ã«ããããããããã¹ãŠãDockerãä»ããŠåäœãããããLinuxçšã®ã¹ã¯ãªãããå®éã«èšè¿°ããå¿ èŠã¯ãããŸããã
Dockerã®å Žåããã¹ãäžã«ããã³ã³ããã®æ°ãïŒdocker.sockãä»ããŠïŒç¢ºèªã§ããã³ã³ãããäœæããŸããã ãŸããicinga2ã®åã³ã³ããã«ãã¹ããäœæããŠç£èŠããããšãã§ããŸãã ã€ãŸããåçç£èŠãååŸãããŸãã ã³ã³ããããã¹ãDockerããåé€ããããšãç£èŠãããåé€ãããŸãã
ãããã«
ååãšããŠããã¹ãŠãäžã§è¿°ã¹ãããŠããŸãããç§ã¯èª°ããäœã䜿ããã決å®ããå Žåã«ã®ã¿ã圌ããããè©Šãããšãã§ãããšä»ãå ããŸãã Dockerã³ã³ããã¯ã€ã³ã¹ããŒã«ããã»ã¹ãå€§å¹ ã«ç°¡çŽ åããè©ŠããŠã¿ãã®ã«éåžžã«é©ããŠããŸãã
Icinga2ã®ã»ããã¢ããã¯éåžžã«ç°¡åã§ããã°ãããããšãã¹ãŠãæããã«ãªããŸãã ç§èªèº«ã¯ã䜿çšãç°¡çŽ åããããã«ããã€ãã®ããšãè¡ããŸããïŒäžèšã§èª¬æããŸããïŒã ãŸããnodejsã䜿çšã§ãã人ã¯ãèªåã§ã¹ã¯ãªãããäœæã§ããŸãã以äžã®ãªã³ã¯ã«ã¯ããã®ããã®ã©ã€ãã©ãªããããŸãã
ç§ã¯ç¹ã«æè¡çãªéšåã«æ·±ãå ¥ããããªãã®ã§ããã¹ãŠãã°ãŒã°ã«ã§ãããé 眮ãããŠããŸãã
åç §ïŒ
1. Icinga2 Docker -icinga2 2.6ã€ã¡ãŒãžãå«ãã³ã³ãããŒ
1aã 誰ããicinga2ã€ã³ã¹ããŒã«ã¹ã¯ãªããã®ã¿ãå¿ èŠãšããå Žåã®Gitãªããžã㪠ã
2. Agen -nsclient ++ã®æ§æãžã§ãã¬ãŒã¿ãŒ
3. Nsclient ++ -Windowsçšã¯ã©ã€ã¢ã³ã
4. dockerhost-monitoring-å¥ã®dockerãã¹ãäžã®ãã¹ãŠã®ã³ã³ãããŒã®ã¹ããŒã¿ã¹ãç£èŠããã³ã³ãããŒã
5. Docker Container NSCAç£èŠ - ã³ã³ããç£èŠã®æ§ããŒãžã§ã³ïŒnscaçµç±ïŒ
6. Icinga2 nodejs API - nodejsã®ã¢ãžã¥ãŒã«/ã©ã€ãã©ãª
7. aditosnmp -snmpããŒãªã³ã°ã®äŸã snmpãä»ããŠã¹ããŒã¿ã¹ãããŒãªã³ã°ããã¹ããŒã¿ã¹ãéä¿¡ããå¿ èŠãããç¬éã§ãã ãapp.jsããèŠãå¿ èŠããããŸã
ãããŠãã¡ãã£ãšãããããã¯ã nodebackupã ãã§ãªãããã¯ã¢ããã³ã³ãããŒã®ã³ã³ãããŒã githubã«æ³šãã ã®ã¯æ®å¿µã§ããã誰ãç¥ããŸããã