Hi,
I have a CSV file which has list of statuses of services
My requirement here is to read this CSV file and display it all the services with the statues with amber light ( health of the service)
This list of services are dynamically added and not a constant service. Means the next interval of CSV will have different service name
Eg : Interval 1
GetFile, 1 , 1
PutFile, 2 , 3
Eg : Interval 2
PutToES, 1 , 1
GeneratePDF, 2 , 3
Does anyone here knows how this can be done using Nagios ?
Display Service Status Dynamically
Re: Display Service Status Dynamically
The check_logfiles(https://labs.consol.de/nagios/check_logfiles/index.html) can be used to find partterns in strings. For example, to print out the lines containing "2,3":
./check_logfiles --criticalpattern '2,3' --logfile=/home/file.csv --report=long --configdir /dev/null
./check_logfiles --criticalpattern '2,3' --logfile=/home/file.csv --report=long --configdir /dev/null
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.