[Xymon] Xymon PowerShell Windows client

Brandon Dale BDale at kitchengroup.com.au
Thu Mar 5 00:45:54 CET 2015


That works

[ifstat]
fe80::25a5:b99d:55cd:951f 2725199676 586864638
10.250.100.163 2725199676 586864638

And it displays on the trends page. Still not perfect however as in most cases you don’t want to see both graphed as the traffic is going to be exactly the same. Ideally some logic  to choose which to display would work best.

Regards,


Brandon

From: zak.beck at accenture.com<mailto:zak.beck at accenture.com> [mailto:zak.beck at accenture.com]
Sent: Thursday, 5 March 2015 2:16 AM
To: Brandon Dale; jlaidman at rebel-it.com.au<mailto:jlaidman at rebel-it.com.au>
Cc: xymon at xymon.com<mailto:xymon at xymon.com>
Subject: RE: [Xymon] Xymon PowerShell Windows client

Hi

Thanks for the patch.

Regarding the BBwin / powershell identifier, my proposal is to default to bbwin but to allow this to be overridden using the local client XML config – does this sound reasonable?

The %<number> stuff is the zone index (https://en.wikipedia.org/wiki/IPv6_address#Link-local_addresses_and_zone_indices) – i.e. the adaptor number.

I'm not sure how useful this is to Xymon and could probably be removed with a slight amendment to your patch like the following:


function XymonIfstat
{
    WriteLog "XymonIfstat start"
    "[ifstat]"
    [System.Net.NetworkInformation.NetworkInterface]::GetAllNetworkInterfaces() | ?{($_.OperationalStatus -eq "Up") -and ($_.NetworkInterfaceType -ne "loopback")} | %{
        $ad = $_.GetIPv4Statistics() | select BytesSent, BytesReceived
        $ip = $_.GetIPProperties().UnicastAddresses | select Address
        # some interfaces have multiple IPs, so iterate over them reporting same stats
        $ip | %{ "{0} {1} {2}" -f ($_.Address.IPAddressToString –replace '%\d+'), $ad.BytesReceived,$ad.BytesSent }
    }
    WriteLog "XymonIfstat finished."
}

I have not tested this but I think it should work.

Thanks
Zak Beck
Infrastructure Tech Support Specialist
Accenture
Tel: +44 (0) 1785 764609
Email: zak.beck at accenture.com<mailto:zak.beck at accenture.com>
Upcoming PTO (leave): Feb 20th, April 7th-10th, Jul 3rd, Jul 24th-Aug 10th
Our core values: Stewardship - Best People - Client Value Creation - One Global Network - Respect for the Individual - Integrity
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.

Accenture means Accenture (UK) Limited (registered number 4757301), registered in England and Wales with registered address at 30 Fenchurch Street, London EC3M 3BD.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20150304/69644357/attachment.html>


More information about the Xymon mailing list