Monitor status of annother nagios installation


#1

Hello,

I am currently running two installations of nagios (Nagios 2 and Nagios 3) in different networks. Both installations are running under debian etch.

Is it possible to monitor the status of the nagios3 installation (Only are there services with status critical, warning or unknown? - like the output of nagios3stats, line "Services Ok/Warn/Unk/Crit: ") through the nagios2 installation? A status saying “everything ok” or “something critical” would be sufficent.

I know there is the possibility to “forward” the service status through passive checks, but that is NOT what I want.

I hope you get what I mean :wink:

Thanks for your replies

Kevin


#2

Um… one way would be to use check_http from one nagios server against the tac.cgi page (Tactical Overview) on the other, and use the “-s” option to check for an expected string in the content, be that something like “0 Critical” or, depending on how complex you want to get, “123 OK”* for services, and similarly, “0 Down” or “123 Up”* for hosts…

HTH

/S

** where 123 would be your total services/hosts that are being checked - of course, every time you add or remove a service/host you would then have to change such a check… I suppose you could get around this by writing a custom script using something like Perl and LWP useragent to download the tac.cgi webpage and search out the “ABC OK” or “DEF Up” values and compare them against the “Active Host/Service Checks UVW / XYZ” value, and alert if ABC<UVW or DEF<XYZ, shouldn’t be to difficult to set up if you know your way around Perl or similar*


#3

Great tip, thanks!
Just tested and it works fine.