Pario TechnoBlob
About
Posts
Tag: Nagios
Lesing av nagios.log
perl -pe 's/(\d+)/localtime($1)/e' nagios.
Script to parse file content from one file to another
This is a PHP script that parse file content from a file and writes this to another config file. #!/usr/bin/php -q < ?php if ($_SERVER['argv'][1] == '') { die("Usage:...
Nagios config sjekk
For å sjekke at nagios ikke har feil i config filene kan man kjøre kommandoen: ./nagios -v ../etc/nagios.cfg