Janne Leinonen wrote: > I use NRPE to poll information from two Windows servers running NSclient++ > > $USER1$/check_nrpe -t 300 -H $HOSTADDRESS$ -c CheckFile2 -a path > ...max-dir-depth=1 pattern=*.XT filter+written=lt:4d > > The command returns all files named *.XT newer than 4 days and these > file names can be seen in status information from the hosts service > detail. > > Output is something like this : > > server 1 service status information: > 0305_04192-11_2011-05-24_09-07-13.XT, > 0305_05035-11_2011-05-24_08-43-48.XT, > 03052_05163-11_2011-05-24_08-46-25.XT, > > server 2 service status information: > 0305_04192-11_2011-05-24_09-07-13.XT, > 0305_05035-11_2011-05-24_08-43-48.XT, > 0305_05163-11_2011-05-24_08-46-25.XT, > 0305_05697-11_2011-05-24_08-48-40.XT, 0305_05701-11_2011-05-24_08-51-05.XT, > > > How can I compare these results in centralized Nagios server and make an > email notification if for example the file names differ? > > Thank You, Janne Leinonen > >
What you are asking is not a part of nagios , but you can write an external script that goes of over the status.dat and gets the data you need , it will not be an easy task as you'll need to account for time diff ,specific string match and file position . ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ 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