The most recent content from our members.
Greetings all. Working on a requirement to parse a (text) log on a Red Hat Linux VM. The Solarwinds built-in log parser come to us written in Perl. For me Perl is a black box. I like Bash. Does anyone know of a Linux log parser in Bash that will work with Solarwinds? I am especially interested in the "new strings found"…
Simple bash check was created: result=$(/bin/ldapsearch -H ldaps://ldapserver.local -b "dc=domain, dc=local" "(&(objectClass=group)(cn=IT.Group))" -x -D "CN=ldap-svc-account,OU=Service accounts,OU=Accounts,DC=dmz,DC=domain,DC=local" -w 'pA$$w0rd' | grep "member:" -c) echo "Statistic: $result" I'm using -w flag to provide a…
Overview Since I enjoy scripting, I figured that I'd gather all of my thoughts around what is required when creating a custom script component and place it here. Hopefully it'll help as you build your own. There are two main things that the SAM script component monitor is looking for: 1. The Exit Code. Ok, I'll be honest.…
... just because Linux servers shown as "vendor:net-snmp" looks silly and Linux server is not a Cisco switch to be monitored via SNMP. To be accurate no-one has to deploy Net-snmp on Linux, especially when hardening server.
We're using Solar Winds to pull various information out of exim logs using bash scripts that tells us the most common addresses of accounts sending out e-mails. The data that we're getting back is good, but we've run into a major problem. We sometimes rely on the bash command history of the root user (the above scripts run…
Hello Thwack - my first post! I'm writing a script to measure bandwidth between 2 remote nodes. The script works fine, and returns the bandwidth in Kbps but I can't get APM to store the value correctly -----BEGIN SCRIPT----- #!/bin/bash NEAR_SERVER="172.22.8.1" FAR_SERVER="172.27.2.5" RESULT=`sudo /usr/sbin/bing -c 1 -e 10…
Here's a simple bash script I conjured up that will find a pid, and print out either the CPU or Memory % utilization from the ps command. Keep in mind that I am in the very early stages of learning bash scripting and there probably are better ways to accomplish what I'm looking for. I'm hoping that by posting this script…
It looks like you're new here. Sign in or register to get started.