doc:appunti:linux:sa:pnp4nagios
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:linux:sa:pnp4nagios [2025/05/23 10:50] – [Compiling and installing pnp4nagios] niccolo | doc:appunti:linux:sa:pnp4nagios [2025/05/23 11:07] (current) – [Compiling and installing pnp4nagios] niccolo | ||
|---|---|---|---|
| Line 43: | Line 43: | ||
| apt-get install build-essential | apt-get install build-essential | ||
| apt-get install librrds-perl | apt-get install librrds-perl | ||
| + | cd / | ||
| wget -O pnp4nagios-0.6.27-5.zip \ | wget -O pnp4nagios-0.6.27-5.zip \ | ||
| https:// | https:// | ||
| Line 85: | Line 86: | ||
| < | < | ||
| - | # Installare tutto quanto in / | + | # Installare tutto quanto in / |
| + | cd / | ||
| make install | make install | ||
| - | # Creare un link per la configurazione in /etc/ | + | # Creare un link per la configurazione in /etc/. |
| ln -s / | ln -s / | ||
| - | # Configurazione | + | # Creare la configurazione per Apache. |
| - | htpasswd -c / | + | |
| cp -p sample-config/ | cp -p sample-config/ | ||
| - | # Cambiare percorso | + | # Creare file di autenticazione e aggiustare il percorso del AuthUserFile. |
| + | htpasswd -c / | ||
| vi / | vi / | ||
| + | |||
| + | # Abilitare la configurazione di Apache. | ||
| a2enconf pnp4nagios | a2enconf pnp4nagios | ||
| systemctl reload apache2 | systemctl reload apache2 | ||
| + | </ | ||
| + | |||
| + | ==== Verifica requisiti ==== | ||
| + | |||
| + | Verificare che esista il file **/ | ||
| + | |||
| + | Visitare l'URL **%%http:< | ||
| + | |||
| + | Se tutto va bene rinominare il file: | ||
| + | |||
| + | < | ||
| + | mv / | ||
| + | </ | ||
| + | |||
| + | ==== Demone NPCD ==== | ||
| + | |||
| + | Creare la configurazione per il demone NPCD: | ||
| + | |||
| + | < | ||
| + | cd / | ||
| + | cp -p sample-config/ | ||
| + | chown nagios: | ||
| + | </ | ||
| + | |||
| + | Modificare il file **/ | ||
| + | |||
| + | < | ||
| + | # | ||
| + | perfdata_spool_dir = / | ||
| + | </ | ||
| + | |||
| + | Il '' | ||
| + | |||
| + | < | ||
| + | systemctl enable --now npcd.service | ||
| </ | </ | ||
doc/appunti/linux/sa/pnp4nagios.1747990240.txt.gz · Last modified: by niccolo
