* add perl syntax checking for scripts
* Update .github/workflows/syntax.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* only show syntax errors
* Add support for ss
Fixed shell injection risk from piped netstat | grep by removing shell pipelines.
Added use strict; use warnings; and localized variables.
Added runtime fallback to ss when netstat is unavailable, with a clear failure when neither exists.
* Fix shell injection risk
apply fixes (safe open, strict/warnings, key whitelist, error handling).
* Update query_unix_partitions.pl
* Update unix_users.pl
add use strict/warnings to flag issues
add better error handling
* Update weatherbug.pl
* add better suport for gree bsd
* Update loadavg.pl
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: TheWitness <thewitness@cacti.net>
* Update ping.pl
Changes to allow ping.pl to work with Solaris - 'ping' is in /usr/sbin which wasn't on the PATH, and the format of the ping command is different under Solaris.
* Update ping.pl
Removed the fork for the uname command
FreeBSD 11 returns "No address associated with name" when ping is passed a hostname with only an AAAA record. Adding this to the list of error messages will force fallback to ping6.
re-calculate ping output of usec to print as ms
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@4062 860744bd-22fc-0310-8c96-e9fe5004b5ca