Possible to test for existence of a remote rrd file?
This post has NOT been accepted by the mailing list yet.
I'm trying to split off the RRD function from Nagios XI to isolate IO load. I know I could use rrdcached to schedule the processing of RRD on localhost but this is not what I'm trying to do.
When Nagios PNP is about to process the performance data, it does a test (-e $rrdfile) to check if the file already exists. If so, it does an rrdtool update. If the file does not exist, it does an rrdtool create
Now, we introduce rrdcached (and rrdsrv) running on the remote RRD processing box, and the question is, how do we test for the existence of the remote $rrdfile?
Would be nice, neat n tidy if there was an rrdtool switch to do this;
e.g. rrdtool check-exist --daemon=192.168.122.32:42217 dc2-web1.localdomain/Ping.rrd
Maybe this would be a useful feature request?
Assuming one can't achieve the goal as above, any other ideas using rrdsrv or rrdcached? Failing this, I will NFS mount the perfdata directory, then do a -e test to the NFS presented filesystem.
The rrdtool *update* works a treat now using rrdcached TCP socket. NB I can't get anything out of of rrdtool info, last, etc when using TCP socket, and don't understand how I could issue the command from remote server to interrogate domain socket, or "cd into the rrdcached daemon base (-b) directory. Maybe somebody else has done this? My head hurts ;)
Once I'm able to do this, I'm assuming I should be issuing the rrdtool create command via one of the following;