The most recent content from our members.
Running locally with correct output: Running through Solarwinds and getting incorrect output: Please check and provide a resolution.
I know this will probably be super simple, and I have no idea why I can not figure this out. I am trying to add a Linux Script monitor in Solarwinds that checks to see if the TrendMicro agent can connect to the management console. This is the command below sudo /opt/ds_agent/dsa_query -c "GetAgentStatus"…
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.…
Hello: We've put together a bash shell script to determine free inodes for a Ubuntu Linux volume (shown below in source code and output) but can't seem to get Solarwinds SAM to run it because its looking for a Perl script apparently. Could someone help converting this to Perl (although this looks simple we have no in-house…
Hi Everyone, is there have same issue with me, when trying SAM script
Hi, I'm trying to monitor process on a Cisco ACI using a Linux script. the script is quite basic: #!/usr/bin/perl $stat=`ps -A | grep nginx| wc -l`; $exit=`echo $?`; if ( $exit == 0 ) { print "Message: Running nginx: $stat\n"; print "Statistic: $stat\n"; exit 0; } print "Message: ERROR: Can't check running nginx instances.…
I found a script on the internet that kind of meets my needs of finding a script to determine if a linux machine has a staled NFS Mount Point. I tweeked the script a little bit to fit my environment and I have came up with the below script. I was successfully able to run the script locally on the machine but when I use SAM…
I've created an Application Monitor Template using the Linux/Unix Script Monitor. According to the help, I report my application status via the exit code: Creating a Linux/Unix Script Monitor When my application is up and I return 0, everything is good and my application shows as Up. If my script returns a 1 as in the…
I built a bash script for some of our Ubuntu servers to get the number of updates available and if the server needs a reboot. This way we can get them taken care of during maintenance windows without needing to log into them all and check for what is needed. The problem I have now is that I cannot figure out how to make a…
It looks like you're new here. Sign in or register to get started.