Hi all, External commands seem to be mostly for changing and updating. Are there similar commands to check the current stats on a given service?
At the moment I'm using these shell scripts (named appropriately) that I've written, which take the host as the first argument and the service as the second. These return the required info after doing lots of grep-ing and sed-ing of the status.dat file for nagios, so that my own app' can... get_alert_sending HOST SERVICE get_attempt_num HOST SERVICE get_flapping_state HOST SERVICE get_last_change HOST SERVICE get_last_check HOST SERVICE get_next_check HOST SERVICE get_state host1 HOST SERVICE It's a little messy and is likely to break if the layout/ordering/anything in the status.dat file changes in later versions of nagios. Or is this my only real option? Cheers, Eddie. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null