Include transfer of file contents to Xymon server for FILE check
On the server I currently have a simple check to see if this file exists. I know if this file exists that there is a power outage somewhere.
HOST=host.imaginenetworksllc.com FILE /opt/noticeofpowerfailure red noexist
What I would like to do is include the contents of said text file to the server so when I click on the status it shows up in my browser. It is just text in the file.
Is this possible?
Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Add...
HOST=host.imaginenetworksllc.com FILE /opt/noticeofpowerfailure red noexist LOG /opt/noticeofpowerfailure
Then the contents should appear in the MSGS column.
Steve
On 17 February 2012 21:10, Josh Luthman <josh at imaginenetworksllc.com> wrote:
On the server I currently have a simple check to see if this file exists. I know if this file exists that there is a power outage somewhere.
HOST=host.imaginenetworksllc.com FILE /opt/noticeofpowerfailure red noexist
What I would like to do is include the contents of said text file to the server so when I click on the status it shows up in my browser. It is just text in the file.
Is this possible?
Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
No dice. I tried that and after two cycles of files being red MSGS is still clear:
System logs at Fri Feb 17 17:50:34 EST 2012 : No log data available
The client did not report any logfile data
Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
On Fri, Feb 17, 2012 at 5:05 PM, Steven Carr <sjcarr at gmail.com> wrote:
Add...
HOST=host.imaginenetworksllc.com FILE /opt/noticeofpowerfailure red noexist LOG /opt/noticeofpowerfailure
Then the contents should appear in the MSGS column.
Steve
On 17 February 2012 21:10, Josh Luthman <josh at imaginenetworksllc.com> wrote:
On the server I currently have a simple check to see if this file exists. I know if this file exists that there is a power outage somewhere.
HOST=host.imaginenetworksllc.com FILE /opt/noticeofpowerfailure red noexist
What I would like to do is include the contents of said text file to the server so when I click on the status it shows up in my browser. It is just text in the file.
Is this possible?
Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
On 02/17/12 17:53, Josh Luthman wrote:
No dice. I tried that and after two cycles of files being red MSGS is still clear:
System logs at Fri Feb 17 17:50:34 EST 2012 : No log data available
The client did not report any logfile data
Josh, you probably already know this, but for the sake of anyone new to Xymon, is it possible that you forgot to add the required statements to the client-local.cfg file on the server like so:
[ClientWithLog.example.com] log:/opt/noticeofpowerfailure:10240
This tells the client "ClientWithLog.example.com" that it is supposed to send the file "/opt/noticeofpowerfailure" (10240 bytes worth)
Hopefully this is something you didn't know, and it helped. :)
-- Bill Arlofski Reverse Polarity, LLC
Yop. =(
[helium.imaginenetworksllc.com] file:/var/www/dsfsdfdsf file:/var/www/sdfsdfsdf file:/var/www/sdfsdfsdf file:/opt/noticeofpowerfailure log:/opt/noticeofpowerfailure
Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
On Fri, Feb 17, 2012 at 6:01 PM, Bill Arlofski <waa-hobbitml at revpol.com> wrote:
On 02/17/12 17:53, Josh Luthman wrote:
No dice. I tried that and after two cycles of files being red MSGS is still clear:
System logs at Fri Feb 17 17:50:34 EST 2012 : No log data available
The client did not report any logfile data
Josh, you probably already know this, but for the sake of anyone new to Xymon, is it possible that you forgot to add the required statements to the client-local.cfg file on the server like so:
[ClientWithLog.example.com] log:/opt/noticeofpowerfailure:10240
This tells the client "ClientWithLog.example.com" that it is supposed to send the file "/opt/noticeofpowerfailure" (10240 bytes worth)
Hopefully this is something you didn't know, and it helped. :)
-- Bill Arlofski Reverse Polarity, LLC
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
participants (3)
-
josh@imaginenetworksllc.com
-
sjcarr@gmail.com
-
waa-hobbitml@revpol.com