Monitor result of a command via curl
Dear, good afternoon I need a help a customer sent the following demand, monitor this command
curl -s http://www.nfe.fazenda.gov.br/portal/availability.aspx | grep "<td> RS </td>" | sed -n 2p | grep -c red_ball
0 = service OK
1 = service OFF
How can I do this?
Please log in or register to enter your reply.
Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.