How to compare two nrpe status information results in Nagios server?

Janne Leinonen janne.j.leinonen at thl.fi
Thu May 26 14:47:03 CEST 2011


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

------------------------------------------------------------------------------
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 at 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





More information about the Users mailing list