Is it possible to include the result of a script in an action message?
Problem:
I am monitoring firewalls that exist behind a router. For clarity, the firewall is our equipment, the router belongs to the ISP. I only need to monitor our equipment by sending a heartbeat ping. I have that working correctly. In my message I would like to give our techs the status of the ISP router.
(ex. ping stats for <router>, sent 3, rec 0, lost 3 100% loss) Since I don't/can't monitor the router in real time w/ an item (see side note at the end), there is no data on the router for a macro to retrieve. I would like to be able to insert the ping statistics for the router into the message by calling a script in the externalscripts directory.
The only solution I have come up w/ is executing a remote command that will send the email I want.
==
On a side note, I wouldn't mind monitoring the ISP device w/ a heartbeat ping, but the simple check icmpping/icmppingsec doesn't allow passing a parameter... it uses the host ip. That would require creating two hosts for each firewall. However, If I declare two hosts (one for the firewall and one for the router), I don't have a way to reference the router stats from the action that was triggered by the firewall trigger. right?
It would be nice to use a icmpping[<ip>] and the extended profile attribute RouterIP (icmpping[{PROFILE.ROUTERID}] to monitor the router, then in my message be able to call the last() status for both items.
--
Please point me in the best direction.
Thanks,
Ray
Problem:
I am monitoring firewalls that exist behind a router. For clarity, the firewall is our equipment, the router belongs to the ISP. I only need to monitor our equipment by sending a heartbeat ping. I have that working correctly. In my message I would like to give our techs the status of the ISP router.
(ex. ping stats for <router>, sent 3, rec 0, lost 3 100% loss) Since I don't/can't monitor the router in real time w/ an item (see side note at the end), there is no data on the router for a macro to retrieve. I would like to be able to insert the ping statistics for the router into the message by calling a script in the externalscripts directory.
The only solution I have come up w/ is executing a remote command that will send the email I want.
==
On a side note, I wouldn't mind monitoring the ISP device w/ a heartbeat ping, but the simple check icmpping/icmppingsec doesn't allow passing a parameter... it uses the host ip. That would require creating two hosts for each firewall. However, If I declare two hosts (one for the firewall and one for the router), I don't have a way to reference the router stats from the action that was triggered by the firewall trigger. right?
It would be nice to use a icmpping[<ip>] and the extended profile attribute RouterIP (icmpping[{PROFILE.ROUTERID}] to monitor the router, then in my message be able to call the last() status for both items.
--
Please point me in the best direction.
Thanks,
Ray
Comment