Quantcast
Channel: THWACK : Popular Discussions - General Systems & Application
Viewing all 8095 articles
Browse latest View live

VBScript issue running command remotely

$
0
0

I've created a vbscript monitor template that executes a sqlplus command on a remote windows server.

Running the vbs script locally, with modifications for local paths, works just fine.

But when executed from the SW poller, it seems as though its not running at all.

Is there something I'm missing with the way SW handles vbscripts? It seems like its executing the script from the poller, instead of pushing to the remote server and executing there.

Does anyone know a way around this?  Or is there an issue with my WshShell.exec command?

I've included the vbs script below

.

Summary : Given the server name and oracle instance name.

Determine temp directory, determine server name, create a .sql command file on remote server with spool option. Execute the sqlplus command.

Open spooled file. and this is where it fails. So it creates the .sql file just fine on remote system, but i dont think its executing the sqlplus command.

 

Troubleshooting

I've tried turning off spool and using redirect to a file option as a part of the sqlcmd variable and the wshshell.exec parameters, neither of which work from SW, but all work locally.

I've also tried setting up an ODBC for Oracle connection without success.

I've tried escaping various characters in the sqlcmd

I've tried changing around sqlplus command

I've tried using the pipe symbol in the command

I've tried utilizing wshremote functions of vbscript without success. (creating script on poller and using wshremote to push to remote server and executing there)

I've tried capturing stderr and stdout from the vbscript, but they are always null.

I've opened a ticket with SW, but they referred me to the powershell doco and said they cant help with scripts, but I was really just asking how SW handles vbscript.

Permissions for the template credentials are domain and have access to the servers.

When I manually create the output file, the script executes as expected calculating free space and etc.

 

Hoping someone can help..

Thanks in advance.

 

Parameters : \\${IP}\C$\Temp {Instance Name}

Option Explicit

Dim LOGIN, DBName, SQLSelect, TmpDir, TmpDirSet, ArchiveDrive, EndofServer, ServerName, SQLDir

Dim WshShell, oExec, SQLOutput, fso, objfile, Disk, DiskFree, DiskTotal, DiskPercent

Set fso = CreateObject("Scripting.FileSystemObject")

Set WshShell = Wscript.CreateObject("WScript.Shell")

TmpDirSet = False

EndofServer = instr(3,Wscript.Arguments(0),"\",0)

ServerName = mid(Wscript.Arguments(0),1,EndofServer)

'---------------------------

'-- Determine Temp directory

'---------------------------

if fso.folderexists(ServerName & "C$\Temp") then

        SQLDir = "C:\Temp"

  TmpDir = ServerName & "C$\Temp"

  TmpDirSet = True

end if

if fso.folderexists(ServerName & "C$\Windows\Temp") and TmpDirSet = False then

        SQLDir = "C:\Windows\Temp"

  TmpDir = ServerName & "C$\windows\Temp"

  TmpDirSet = True

end if

if fso.folderexists(ServerName & "C$\WinNT\Temp") and TmpDirSet = False then

        SQLDir = "C:\WinNT\Temp"

  TmpDir = ServerName & "C$\WinNT\Temp"

  TmpDirSet = True

end if

If TmpDirSet = False then

  WScript.Echo "Message: Unable to determine temp directory"

        WScript.Echo "Statistic: 0"

        Wscript.Quit(0)

end if

'-----------------------------------

'-- Setup Connection Info for Oracle

'-----------------------------------

LOGIN="userid/password"

DBName=Wscript.Arguments(1)

'----------------------------------

'-- Create Tempory SQL command file

'----------------------------------

Set objFile = fso.CreateTextFile(TmpDir & "\s_" & DBNAME & ".sql", true)

objFile.writeline("SPOOL " & SQLDir & "\sqloutput.log;")

objFile.writeline("select value from v$parameter where name = 'log_archive_dest' and value is not null")

objFile.writeline("union all")

objFile.writeline("select value from v$parameter where name = 'log_archive_dest_1' and value is not null")

objFile.writeline("union all")

objFile.writeline("select value from v$parameter where name = 'log_archive_dest_2' and value is not null;")

objFile.writeline("SPOOL OFF;")

objFile.writeline("quit;")

objFile.Close

'----------------------------

'-- Execute SQLPlus Statement

'---------------------------- 

dim sqlcmd

wscript.sleep(10000)

sqlcmd = ServerName & "C$\oracle\ora81\bin\sqlplus -s " & LOGIN & "@" & DBName & " < " & "C:\Temp\s_" & DBName & ".sql"

Set oExec = WshShell.Exec(sqlcmd)

'-------------------

'--Retrieve location

'-------------------

Set objFile = fso.OpenTextFile(TmpDir & "\sqloutput.log", 1)

Do While objFile.AtEndOfStream = False

    SQLOutput = objfile.readline()

  if Instr(SQLOutput,":\") > 0 then

  ArchiveDrive = mid(SQLOutPut,1,1)

  Exit Do

  end if

Loop

objFile.Close

set Disk = fso.GetDrive(ServerName & ArchiveDrive & "$")

DiskTotal = Disk.TotalSize

DiskFree = Disk.FreeSpace

DiskPercent = (100 - ((DiskFree/DiskTotal)*100))

Wscript.echo "Statistic : " & FormatNumber(DiskPercent,2)

Wscript.echo "Message : " & SQLOutput

'----------------------------------

'-- Delete Tempory SQl command file

'----------------------------------

'fso.DeleteFile(TmpDir & "\solarwinds_" & DBNAME & ".sql")

'fso.deleteFile(TmpDir & "sqloutput.log")


Do you prefer agentless or agent-based monitoring? Are there situations where you prefer one over the other?

$
0
0

When I’m evaluating a monitoring system, one of the first things I check for is if it is agent-based or agentless. The use of one method over another doesn’t necessarily spell disaster for the project in my eyes, but I do admit that I have a preference for agent-based monitoring these days.

 

Personally, I prefer the concept of push based monitoring rather than pull based. Pulling data from servers, or other devices, means more exposed services, managing authentication, and being mindful of explicit ingress firewall rules. With agent based monitoring, it pushes data which is typically easier to manage and secure on multiple fronts. Even better if the agent itself encrypts and compresses the data that it sends so the entire security issue is handled in one package.

 

Certainly with agentless data collection for monitoring systems there’s usually a reliance on an industry standard and vendor-supported system like WMI for Windows and SNMP for pretty much everything else (although SNMP is just fine for Windows too). Agentless is easier to deploy and has the potential for being more stable. With an agent you’re adding another always-on service to the machine with the potential for one more moving part that could hang and cause problems. It boils down to how much you trust the vendor to make a stable agent.

 

So what’s your preference and why? Agent based? Agentless? Mix and match?

Redis hit/miss rate application monitoring possible?

$
0
0

Hello,

 

We have recently moved some systems to used Redis in favour of Memcache, for key -> value lookups.

 

I notice you can monitor Memcahce and get things like "cache hit/miss rate".

 

Is Redis in the pipeline, with similar kinds of statistics available?

 

Thanks,

Oli.

WDS Slow TFTP PXE boot

$
0
0

Not SolarWinds related but hoping someone can help out

 

 

Issue- When PXE booting, the TFTP transfer of the boot wim is very slow.  After the boot wim is transferred the rest of the image deployment goes fine.

 

 

SCCM/WDS enviroment

 

SCCM 2012 R2

VM-Server 2012 R2

NIC adapter-- VMXNET3

 

 

Only solution I seem tot be able to find is  setting the RAMDISKBLOCKSIZE, but that didn't help.

 

Has anyone else experienced this?

Move NPM and NCM to a new server with a new name and the same IP

$
0
0

I'm running NPM 12.1 and NCM 7.6 and need to move these to a new server with a new name. I'd like to use the same IP as the old server if possible. The apps and database (MySQL) are running on the same server and need to keep the same on the new server. There is, at the least, one update for NPM that needs to be considered in this mix. I've had a look for answers through thwack but haven't found specific directions.

 

If someone could point me in the right direction, it would be appreciated. I would like to hear from someone that has done this before.

NOC Dashboard

$
0
0

My company moved from OpsView (Nagios) to Solarwinds recently.  Opsview offered a nice rolled up View of all my nodes and services like attached and I find it perplexing that this isn't readily available in Orion.

 

I want a single view that shows Groups, Nodes, all services (SAM and NPM), not in separate windows.  Anyone know if this can be done???  If not, well, we just spent a good penny on a product that gets circles run around it by an open source product.

 

BTW, the attached view is dynamic and will show criticals as they occur and then it lets you know when they are handled or unhandled.  You can click down for details on the critical alerts which will show you how long the component has been down.

pause or stop Solarwinds while in maintenance?

$
0
0

A quick search didn't produce a quick answer: if I intend to do firmware, driver, Windows updates that will require a restart or two on the Solarwinds server, how do I pause the thing, i.e. stop Solarwinds until I am done, and then resume?

 

Simply doing driver updates (no restart yet) already triggered a few bogus alerts.

 

Thanks!

SFTP Maximum File Size

$
0
0

I am running the SFTP/SCP Server to back up my CUCM servers.  I get successful backups of the Call Manager and Unity but the backup for Contact Center fails on the CCXComponent.  I'm wondering if I am running into a file size limitation.  The only error I see is that there is an error writing the output file.


The Observer Effect – Agent vs Agentless Monitoring

$
0
0

If you were a Star Trek fan like myself growing up, you might remember a funny device called the Heisenberg Compensator. It was used when transporting people to account for the affects of a theory called the uncertainty principle, which basically states that the more precisely you try to determine something, the less precise it becomes. OK - the geeky mechanics lesson is over for now.

 

In the field of Information Technology, this is commonly extrapolated as the Observer Effect. In essence, when we try to monitor and observe servers, networks, and applications, we are changing the results. This makes sense, as it does take some network bandwidth, CPU cycles, and other resources to effectively monitor an environment. However, the impact of this is highly dependent on where the monitoring takes place. Which brings me to an agent vs agentless question.

 

What are your thoughts on using agents for monitoring your environment? The typical argument goes something like this: Agents provide richer data streams while adding load to the application, while agentless can only pull limited data (based on the API and security access permissions) but can isolate the load to an external resource and do not impact the application as severely. Has this been your mindset / experience, or have you encountered the opposite ... or something in between?

SOAP XML Monitor is failing

$
0
0

Hi,

 

I created a new SOAP Monitor in SAM.

 

Under "SOAP XML Request" it is set to "Manually enter SOAP XML Request".

 

When it runs it fails with this error message.

The remote server returned an error: (415) Unsupported Media Type.

The remote server returned an error: (415) Unsupported Media Type.

Headers:

Connection: close

Date: Thu, 12 Mar 2015 12:53:54 GMT

Content-Length: 0

X-OPNET-Transaction-Trace: a2_7fa6a299-b967-4462-8627-f9a9de25b4e1

X-Powered-By: Servlet/2.5 JSP/2.1

ResponseUri: http://abc-chsa-p01:8890/cs/ABCAuthSoap12HttpPort

 

When I run this from the command line using Curl it works fine.

curl -X POST -H "Content-Type:application/soap+xml; charset=utf-8;" -H "SOAPAction:"  --data @request.xml http://abc-chsa-p01:8890/cs/ABCAuthSoap12HttpPort

 

Any ideas as to why it does not work?

 

Thank you,

Gino

Removing a node from a application monitor

$
0
0

How does one remove or delete a node from a application monitor with out copying the application deleting the application of the monitor one wants to delete and re-adding the desired application to the copied application and renaming.

Monitoring Linux hosts - Disk, Memory, CPU - Help

$
0
0

I've spent the better part of this week learning, and researching how to configure my environment (RedHat/CentOS) in SolarWinds Orion.  There are a few things I can't seem to figure out.  All my work has been through the browser based management portal (host/Orion/SummaryView.aspx).  I do not have access to the actual windows based management application yet, which may be the root of my problem.

 

First, let me clear some basic information;

snmp is configured and working on my linux hosts, snmpwalk is successful, snmpdf from a remote host (linux to linux) is successful, the host is configured and shown in the Orion browser and self tests are successful.  From this I can confirm snmp communication between Orion and the host is working.

 

Examples:

(local test)

[yaddayadda@hostname-02 snmp]$ snmpwalk -v1 -cpublickey localhost 1.3.6.1.4.1.2021.13.15.1

UCD-DISKIO-MIB::diskIOIndex.1 = INTEGER: 1

UCD-DISKIO-MIB::diskIOIndex.2 = INTEGER: 2

UCD-DISKIO-MIB::diskIOIndex.3 = INTEGER: 3

UCD-DISKIO-MIB::diskIOIndex.4 = INTEGER: 4

UCD-DISKIO-MIB::diskIOIndex.5 = INTEGER: 5

UCD-DISKIO-MIB::diskIOIndex.6 = INTEGER: 6

UCD-DISKIO-MIB::diskIOIndex.7 = INTEGER: 7

UCD-DISKIO-MIB::diskIOIndex.8 = INTEGER: 8

(lots of additional omitted output) ...

 

(server to server):

[yaddayadda@hostname-01 ~]$ snmpdf -v 1 -cpublickey -Cu 128.12.8.128

Description              size (kB)            Used       Available Used%

/                          9296968         2578672         6718296   27%

/home                      4128448          139364         3989084    3%

/var                       4128448          274556         3853892    6%

/tmp                        516040           16820          499220    3%

[yaddayadda@hostname-01 ~]$

 

 

Lets just focus on disk space monitoring, if I can get that working, the rest will follow.  If I go into the browser management tool, navigate to "Manage nodes", I can click on "net-snmp" and see my linux hosts.  By opening the "+" sign next to one of the hosts listed, I can see the file systems specific to this host it is monitoring.  This is all good, except it does not allow me to uniquely configure them beyond showing they are being monitored.  NOTE:  During the initial "Add Node" steps, it displays more file system options, I selected the meaningful ones and they are what I see being monitored.

 

What I need is;

Disk Space monitoring specific to the configured host.  This goes into thresholds, who receives the email alerting, etc.  One host may require critical alerting at 95% capacity, while another at 85%, and respectively email different groups.  From the browser based tool, I can not seem to figure out where to configure this.

 

I have spent a good deal of time with the search function, and have found some helpful tidbits, but nothing that really helped me get the results I am looking for.

 

Can anyone help me with this?

 

Thank you!

Patch Management solutions for Linux Servers?

$
0
0


Are there any plans to develop a Patch Management tool for Linux Server?

SolarWinds as CMDB source for servicenow?

$
0
0

Hello,

 

Has anyone out there ever used SolarWinds data as an input to the servicenow CMDB?

 

We are considering utilizing SolarWinds as our initial primary source of data into the servicenow CMDB rather than servicenow Discovery.

We already have SolarWinds set up and polling our Data Centers.

Are there drawbacks to this approach? What are they? Was it a large manual operation to transform SolarWinds data into the CMDB?

 

For relationship within the servicenow CMDB, what was lost versus utilizing servicenow Discovery?

 

Thanks for any input.

Syslog shows IP address as hostname instead of servername

$
0
0

Hello Thwack users!

 

I have a question concerning the web syslog viewer (/netperfmon/syslog.aspx).

For Info: We are currently running NPM 12.0.1 / SAM 6.3.

 

Under the web syslog viewer we have devices (polled via SNMPv2) which are shown with their servername (i.e. mydevice01)

and others simply have the IP address under the column HOSTNAME. We checked the node information, and every node has its own unique hostname entered under its properties.

 

So my question why are there some devices shown only with their IP address and how can we change it?

 

Thank you in advance!

-FRA


HP Tools on Hyper-V Server 2012 to manage RAID

$
0
0

Hello...

 

I have Hyper-V 2012 server and need to understand ways to manage RAID like HP tools, has anyone got experience on installing this on hyper-v 2012 server. Can anyone share instructions, documents or any suggesations.

 

thanks

Monitoring IVR using a phone call

$
0
0

I was just asked if Orion can monitor the IVR by making phone a phone call.  We recently had an issue where a PRI (old school T1 to PBX) went down and we were not getting the IVR calls to the IVR system, all services were running, so Orion wasn't alerting about it.

 

I see something that could work from IVR Monitoring | Call Center Monitoring | TelcoAlert , but I want everything natively in Orion.

 

Has anyone done this?

 

Scripting is no problem, but I just can't find a thread to start pulling on to find the solution at the end.

How to get object name included in alert email?

$
0
0

In Orion I have some servers added to a group for alerting purposes. I configured a trigger condition for when any member of that group status shows as down. Configured trigger action to send me an email.  But, nowhere in the email does it say what server is down. It just provides a link back to Orion to show the devices. I would rather just know the name of the device right away so I can start working on the issue rather than take time to bring up Orion and log in, etc. How can I get the name of the down device to be included in the email?

Include what triggered my alert?

$
0
0

I'm sure I have to be overlooking something but could someone please tell me what I can't see?

 

So I have a basic alert setup to monitor the CPU or Memory warning threshold

 

 

I would just like to have which one trigger the alert to be included in the email and possibly the value that is currently at.  It seems to me this would be built in, am I missing something?

Move NPM and NCM to a new server with a new name and the same IP

$
0
0

I'm running NPM 12.1 and NCM 7.6 and need to move these to a new server with a new name. I'd like to use the same IP as the old server if possible. The apps and database (MySQL) are running on the same server and need to keep the same on the new server. There is, at the least, one update for NPM that needs to be considered in this mix. I've had a look for answers through thwack but haven't found specific directions.

 

If someone could point me in the right direction, it would be appreciated. I would like to hear from someone that has done this before.

Viewing all 8095 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>