-
Better way to ping from a agent?
Because most of my clients have a small office I cannot put a Pandora server in each location and have a full SNMP setup, but I did want to make sure printers were ‘on’. Since I’m not using SNMP the only method I could find was to ping the server but I am using a Windows agent to do basic monitoring of that server and related resources.
I tred using ‘generic_icmp_proc’ but it didnt seem to work, so I built my own ‘ping’ tool. I used a 3rd party ping comamnd, called fping as Windows Server 2003, XP, Vista, 2008 display ping results in a different way. Example below is for my a older HP5Si
module_begin
module_name printerHP5SiBack
module_type generic_proc
module_exec fping 192.168.128.138 -n 1 -l | grep “Reply” | wc -l
module_description Check to see if HP 5Si replies to Ping
module_endIs there a more efficient way of doing this?
Lastly, does anyone have any other tips for the Windows Agent?