Comparing and showing in Reports service outputs
Posted: Fri Oct 14, 2016 4:25 pm
Hello,
first of all, thanks in advance for your time reading this questions.
Question 1
I have some services that count some files in some server folders. As far as the count result can be different every day and even 0, the check is always OK and I show the count result as the output of the check. This is working fine.
I need to compare the output of 2 of this services and raise a Critical or a OK if outputs are different or not. I readed that with check_multi I can execute some child checks and get a global result but as I said, as far as the checks will always be OK, How can I use check_multi (or other different way) to get the final result comparing the output of the child services instead the service status?
Question 2
Very related with the previous question, is there a way to show in a Dashboard and in a Report the output of the service check instead of the service status?
I mean.. create a report in Nagios for this service in which I get someting like :
Server_Name1 --> 50 files
Server_Name2 --> 60 files
Server_Name3 --> 45 files
I saw that in a Dashboard I can use the text_label=[output] to show the output near to the service Icon but I don“t know if this is the best way to do it.
Of course the purpouse of all of this is to use nagios to automate the process for counting files and presenting the result in a Dashboard or scheduled Report, which I know that is not the main purpouse for this monitoring tool but nagios will never stop surprising me.
Many thanks for your help and comments.
Best Regards
first of all, thanks in advance for your time reading this questions.
Question 1
I have some services that count some files in some server folders. As far as the count result can be different every day and even 0, the check is always OK and I show the count result as the output of the check. This is working fine.
I need to compare the output of 2 of this services and raise a Critical or a OK if outputs are different or not. I readed that with check_multi I can execute some child checks and get a global result but as I said, as far as the checks will always be OK, How can I use check_multi (or other different way) to get the final result comparing the output of the child services instead the service status?
Question 2
Very related with the previous question, is there a way to show in a Dashboard and in a Report the output of the service check instead of the service status?
I mean.. create a report in Nagios for this service in which I get someting like :
Server_Name1 --> 50 files
Server_Name2 --> 60 files
Server_Name3 --> 45 files
I saw that in a Dashboard I can use the text_label=[output] to show the output near to the service Icon but I don“t know if this is the best way to do it.
Of course the purpouse of all of this is to use nagios to automate the process for counting files and presenting the result in a Dashboard or scheduled Report, which I know that is not the main purpouse for this monitoring tool but nagios will never stop surprising me.
Many thanks for your help and comments.
Best Regards