WINDOWS BATCH SCRIPT FOR AUTOMATED BACKUP USING PGADMIN
Please can you send me a windows batch script that can back up my OpManager database ifhchourlysum table at 12:00am and 12:00pm into my C: drive using PostgreSQL Pgadmin. Thanks in advance and I appreciate your responses.
Script Monitor INSTANCE variable Character Limit
Hi Team, 1) I have recently created a custom script monitor to monitor a LOG file. Which is going good and I am able to get the results in TEST SCRIPT option. But the problem here is, in the INSTANCE String if I have more than 85 characters, Opmanager is not creating an alarm for that. Need to know whether there is a character limit for the INSTANCE string in the output of a custom script monitor. 2) I need to know how can we display Message that we get from script out to alarm message. we
AIX Permission issue on a file from opmanager ssh script(script template) but accessible through putty with same credentials
Hi Team, I am working on a customized shell script for AIX machine. Where I am not able to access a certain log file through Script template , which shows permission denied. But when I try to access the same file using Putty with same credentials , I am able to access it. Please tell me , whether I have to ask for any special permission to access that ? AIX admin people recenly gave full permission to that log file. which is accessible through Putty session but not through the script template.
Custom script for fsutil command
I want to monitor the fsutil dirty bit on all the drives of a cluster server, with Opmanager script monitor. I can check this manually with the following commands: fsutil dirty query C: fsutil dirty query F: fsutil dirty query G: and so on for each drive. I get a response of either: Volume - C: is Dirty or: Volume - C: is NOT Dirty I want an alert for any drive that returns a dirty query, I'm ok with setting up a separate script template for each drive, but I'm not great with scripting. Any suggestions
URL monitoring with custom script
I've discovered that the URL monitor in Opmanager cannot monitor a Sharepoint URL if NTLMv2 authentication is required. I'm wondering if it's possible to achieve this using a script monitor passing credentials via powershell. If so can someone assist with the script? I've been googling this up but can't get anything working? Thanks.
Script to monitor apcupsd on remote server
Opmanager Version 11600 on Windows 2008 $servername = psexec \\servername c:\apcupsd\bin\apcaccess status -p BCHARGE -u Write-Host 'Data:' Write-host $servername I am running the above Powershell commands from the Opmanager server to get the battery charge from a server running APCUPSD and trying to convert this into a script template. The value returned by the command is 100.0 if all is OK and want to set the threshold to alert if this drops below 50.0 but cannot get the script to work. Have tried
when a process stop, execute this command
Dears, we have a process monitored on a remote server via SSH, I need to send to the server a command (to restart this process) whenever this process stopped at any time , and Thank you
Specific Interface Reporting & Monitoring
Hi I have a question about : Our network has 50 devices with more than 4700 interfaces but that we need is: reporting from specific interfaces for example I want to have a availability report just from my Tunnels interface, Not all interfaces or other interfaces. How can I create this report . Thanks Roozbeh
Mail Queue Monitoring
Hi, How can I setup mail queue monitoring using OpManager to monitor if the amount of mail in our queue (which is using postfix) is above 100? I have this script, and I want to run it on the server and have OpManager run it and create a ticket/request if the queue is above 100 #!/bin/bash queuelength=`/usr/sbin/postqueue -p | tail -n1 | awk '{print $5}'` queuecount=`echo $queuelength | grep "[0-9]"` if [ "$queuecount" == "" ]; then echo 0; exit 0; else echo ${queuelength};
Monitoring File count in a Folder using Script Monitor ( Linux and Solaris)
OpManager supports different scripts (Powershell , Shell,Perl & VBScript) for adding custom script monitors. Here is a sample shell script for monitoring number of files on a Linux and Solaris servers. For Linux server : Script Body: #!/bin/bash files=$(ls /opt/ManageEngine | wc -l) set -e echo "Message: Files" printf "Data:\n files $files" For Solaris: Script Body : #!/bin/bash files=`ls /opt/SUNWmlib/lib | wc -l` set -e echo "Message: File Count" echo "Data:\nfiles\t$files " (command ls /opt/SUNWmlib/lib
OpManager not parsing SSH output
Because I want to run a script on a UTM, linux based, I got a problem when OpManager tries to parse the SSH output, but can't fix it. Because OpManager executes: cd /tmp echo $? On the log I can't see a JAVA exception in trying to convert the "echo $?" to integer at: 0 utm-test:/tmp # Which basically is the box not breaking the line, to the OpManager terminal (works on putty simply well). So OpManager confuse itself trying to take the 0. Any recommendation? OpManager has no flexibility, it's all
need to convet shell script in xml format to run in op manager
#!/usr/bin/ksh #author : Jugvinder Punia #email id : jugvsing@in.ibm.com #Purpose : This script will add hostname in each line of "df -gt" output #WeeklyHIRISE HOSTNAME=`hostname` Weekly_HIRISE=/tmp/$HOSTNAME rm -f $Weekly_HIRISE/*HMSI*.csv if [ ! -d $Weekly_HIRISE ] then mkdir $Weekly_HIRISE fi df -gt > $Weekly_HIRISE/df.tmp grep -v Filesystem $Weekly_HIRISE/df.tmp > $Weekly_HIRISE/df.tmp1 while read line do echo `hostname` $line >> $Weekly_HIRISE/df.`hostname` done < $Weekly_HIRISE/df.tmp1
Script monitor - Variable
Hi, I need use a variable to get information about a specific host monitored in a script template of shell script method. I will go use a single template to monitor several devices. I'm using the variable ${DeviceName} to inform the device name to command snmpwalk and occur the error below: Follow part of script with error: Body script: Get="$(snmpwalk -v2c -c public ${DeviceName} .1.3.6.1.4.1.)" Error: getaddrinfo: .1.3.6.1.4.1. Name or service not known snmpwalk: Unknown host (.1.3.6.1.4.1.) Is
Historical traffic interface data from multiple fractioned tables
Hi, I need to build historical traffic reports on op manager. Eg. the in/out traffic for a week or a month... as you may know, data collection tables at OpManager (statsdata_daily_yyyy_mm_dd, ifhcraw_yyyy_mm_dd, etc...) are fractioned when they reach specific amount of rows, and the date range where the tables are "cutted" is variable... so I need a SQL query or procedure, or a view that can join this tables so If I need the weekly or monthly report... something that can query from all required tables.
Pass IP address to script monitors
Hi, Is there any way to pass the IP address of a device to a monitoring script instead of the device name? For example, a variable like ${DeviceIP} instead of ${DeviceName}. Thanks, Hamish
Monitoring
I have many problems for monitoring Mikrotik (pppoe interfaces) and OLT PARK (GPON INTERFACES). Anyone can Help me
Does anyone have a script for monitoring APC Symmetra UPS?
Hi, Does anyone have a script (preferably Powershell or any other Windows based scripts) that they can share? I am looking to setup monitoring of our APC Symmetra UPS through OpManager and get it to gracefully shutdown our servers in event of a power outage, based on the percentage of battery remaining on the UPS. For example, I am happy for half of the non-critical servers to be shut down when it gets to 80%, then the business critical ones to be shut down later, say at 20% or 10% depending on
CPU MEMORY Allied Telesis 8000GS problem
Hello I have problem to monitoring Allied Telesis 8000GS how I could solve this? NO cpu no memory
Custom script template with powershell and sqlplus
hi, Tried the following in the Powershell console and it works: $sqlQuery = get-content "D:\Scripts\sqlquery.txt"; $tnsalias = "tnsalias"; $username = "username"; $password = "password"; $sqlOutput = $sqlQuery | sqlplus -silent $username/$password@$tnsalias; Tried the same with Opmanager and failed: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> <entry key="thresholdEnabled">false</entry> <entry key="executeFrom">0</entry>
Python script
Hi, I have script that work well with Nagios in my SUSE sles 11 machine. How can i use the same script and add in Opmanager -script monitor template? Below are the script that i need to put in Opmanager. Thanks #!/bin/bash if [ $# != 2 ]; then echo "Bad number of parameters. Provide warning limit and critical limit" exit 3 fi ntpfile='/etc/init.d/ntp' if [ ! -f $ntpfile ]; then echo "ntp daemon not found" exit 3 fi offset=`/etc/init.d/ntp status | awk ' { print $9} ' | sed -n 3p` if [
Instance count case sensitivity
So, here's my problem. I have multiple servers running various applications, all of which run a specific number of instances. Process monitor works great for anything with only one instance, and I have been figuring out how to use script monitoring for the others, based on the instance count script template. As the developers here have (finally) been getting these applications ready for me to move them server 2008, I have encountered a problem on the monitoring end of things. If I open an application
Monitor script not working on UTM/Linux system
Hi guys, I have several UTMs that are linux based, and I got a bunch of scripts that need to be run on those. Thus, I wrote a simple one, tested on a Debian (worked) via ssh/putty and via OpManager, but when testing on the UTM it worked via ssh using putty , but via OpManager it didn't. Note: on both I got the password/credentials test working. Note2: I takes aprox. 20 seconds to return the error (However it is not by timeout): Exit Code 4 Message Script_teste:Internal Server Error while processing
Error after enabling Threshold for Script Template
If I edit a Script Template I can test and save successfully. However it I attempt to Enable Threshold and then save the template I get the error: Error occured in template modification. And yes the word occurred is incorrectly spelt in the error message.
Alert when value does not change
I have a script monitor that will go and get the current document count from my ElasticSearch cluster. Since we are using this for log collect the value is consistently changing. Mostly up but once a day when it run through its cleanup the value will go down. How can I configure thresholds to alert only when the value did not change from its previous value? if {currentValue} == {previousValue Then {sendAlert}
How do I call an OID response within an alert message?
I am using the a default Performance Monitor string that is in the format $MONITOR for $INSTANCE is $CURRENTVALUE $UNITS, threshold value for this monitor is $THRESHOLDVALUE $UNITS Firstly, where do I find a table of the possible '$' values? I have found $INSTANCE returns a value which is useful to me, but not so much to a user, so I wish to translate this value to a name. $INSTANCE returns .2 which in this case is a radio site number. The radio site name I can retrieve from an additional OID
Plugin: Network Configure Management can't detect device in OpManager Database. Error when use SSH backup configuration!!!
Dear Support, Now my system have some issue, please show me way to fit it? 1) IP addresses of devices can’t be detected in NCM plug-in, even though those devices are added and defined in OpManager. ( Device : Cisco ASA5520, HP Switch) 2) I use Telnet to backup Cisco devices successfully, but there is an error when I use SSH to backup HP devices. Moreover, my group wants to move all protocols to SSH for backup process. Can you let us know meet ability of this requirement? ( Device :
Service Monitoring
Is there anyway to monitor only the services marked "Automatic" on all devices we currently have? I spoke to ManageEngine Support and they said that you can write a custom script to do that. Can you help with the script? Thanks.
Monitorize Python Script
hello, we need to monitorize a Python script, located in one directory. the result of the script is this: is there any way to monitorize this? BR
Passing Parameters to a PowerShell Script
Hello I have a PowerShell script (defined in OpManager as Script Template), as mentioned in the help I can pass the IP and the name of the device using the command line (cmd /c powershell.exe -ExecutionPolicy Unrestricted .\${FileName}.ps1 -serverIP ${IPAddress} -serverName ${DeviceName}) My script will be called by different devices, the question is, can I pass other parameters to that script. For know, I have to copy the script for each device, and in each version I am specifying different values
Oracle Linux OS
Hi How to monitor oracle linux?
"Internal Server Error while processing this request" error on new WMI monitor
I've configured a new monitor to check service uptime via WMI but after updating/applying the threshold values I keep getting the error message "Internal Server Error while processing this request." I can get a (correct) value returned when I test the monitor.
Windows Serive Not starting while testing
I have set up monitoring of a Windows Service on one of our test boxes. Under Device Details Monitoring is set to 1 min. Under the Windows Services the box for, Do the following action, if the service is unavailable. Is checked. The radio button for Restart this service is checked. On the server itself the service is set to automatic. When I stop the service, The status shows that it is down in Opmanager. Does Opmanager only restart the service on failure, or should it also start on Graceful shutdown.
Customed Script on URL Based monitoring
Dear All, Could please help with sample script on URL monitoring where I need to skip monitoring for 2 hours. Roshan
EXtreme networks EAPS monitoring..
Hi! Has anybody had any success of monitoring Extreme NEtwork Switches EAPS in opmanager?
Alert on FTP file age
Hello, We are looking at using opmanager to replace our existing monitoring software but I need to be able to check the file age of a file on a FTP server and if the file is greater than 30 mins to create an alert. Has anybody created a custom script to do something like this? Thanks Greg
Test email send and receive
Hi, Looking for a script to test email send and receive thru POP3. Is there anything available for OpManager?
normal script to show alert
Hi, I made a script to test with opmanager to monitor disk in freebsd. I can run this script on server console but while chekcking with opmanager got, below error. Script Result Exit Code 4 Message Monitor Disk Health :For Windows machines scripts cannot be executed remotely:Hhg-sto-100 Data Data is not found/invalid data format - Please refer the help card 'Output Format' part for assistance. my bash script: #!/usr/local/bin/bash tmpfile=`mktemp` trap "rm -f $tmpfile" INT EXIT TERM check_drive()
PowerShell Script to monitor strings in Log file
Hello, I have written a script to monitor certain strings in a Log file. The script works fine on the server itself but not via opmanager. Please help. param ( [Parameter(Position=1)] [DateTime]$StartDate = (Get-Date -Hour 0 -Minute 0 -Second 0 -Millisecond 0), [Parameter(Position=2)] [DateTime]$EndDate = (Get-Date -Hour 23 -Minute 59 -Second 59 -Millisecond 999), [Parameter(Position=3)] $FilePath = "c:\qp_data.log", [Parameter(Position=4)] $Strings = @("Getting",
Script monitor alerts
Hi, I want to know what kind of alert of script monitoring? I have already added script in opmanager and its working fine. Even data out put is also working but problem is that i dont know what parameter i have set on threshold and what kind of alert its generate when its working or not. can any one give a sample of script monitor alert ?
SNMP trap parser -Link Down with Match criteria not working
Hi, I am creating a custom Trap parser Link down configured similar to the default link down trap parser except I was putting a match criteria. The default link down is also activated at the same time. However, my custom trap parser never gets triggered, always the default link down. The match criteria is based on the varbind 1 corresponding to the interface index and it is properly configured but I cannot figure out why it is not working. Disabling the default link down trap parser also results
Next Page