Linux logfile monitoring does not work after using "privileged datasource"

Hello!
I have noticed a strange behaviour on one of my Linux Agents (lets call it server_a) regarding logfile monitoring with the "Microsoft.Unix.SCXLog.Datasource" and the "Microsoft.Unix.SCXLog.Privileged.Datasource".
After successfully testing monitoring of /var/log/messages on server_a with the "Privileged Datasource". This test has been on server_a and the MP containing this rule has been delete from the management gorup before the following tests.
I wanted to test another logfile (lets call it logfile_a) using the normal datasource "Microsoft.Unix.SCXLog.Datasource" on server_a. So I created the usual logfile rule (rule_a) in XML (which I have done countless times before) for monitoring
logfile_a. Logfile_a has been created by the "Linux Action Account User" with reading rights for everyone. After importing the Management Pack with the monitoring  for logfile_a I had the following warning alert in the scom console managing
server_a:
  Fehler beim Überprüfen der Protokolldatei "/home/ActionAccountUser/logfile_a" auf dem Host "server_a" als Benutzer "<SCXUser><UserId>ActionAccountUser</UserId><Elev></Elev></SCXUser>";
An internal error occurred.  (the userid has been changed to keep the anonimity of our action account).
To make sure I did not make any mistakes in the XML i have created a new logfile rule (rule_b) monitoring "logfile_b" on "server_a" using the "Logfile Template" under the authoring tab. logfile_b was also created by the "Linux
Action Account User" and had reading rights for everyone. Unfortunately this logfile rule created the same error:
  Fehler beim Überprüfen der Protokolldatei "/home/ActionAccountUser/logfile_b" auf dem Host "server_a" als Benutzer "<SCXUser><UserId>ActionAccountUser</UserId><Elev></Elev></SCXUser>";
An internal error occurred.  (the userid has been changed to keep the anonimity of our action account).
Although both rules (rule_a and rule_b) used the "Microsoft.Unix.SCXLog.Datasource" which uses the Action Account for monitoring logfiles, the above error looks to me as SCOM wants to use the privileged user, which in this case it not necessary
as the Action Account can read logfile_a and logfile_b without any problems.
So after a few unsuccessfull tries to get both rules to raise an alert I tried to use the "Microsoft.Unix.SCXLog.Privileged.Datasource" for rule_a as last resort. Then suddenly after importing the updated Management Pack I finally received the
alert I desperately waited for this whole time.
Finally after lot of text here are my questions:
Could it be that the initial test with the Privileged Log Datasource somehow screwed up the agent on server_a so it could not monitor logfiles with the standard log datasource? Or may anyone of you might have an idea what went wrong here.
Like I said both logfile could be accessed and changed by the normal Action Account without any problems. So privileged right are not needed. I even restarted the scom agent in case something hanged.
I hope I could make the problm clear to you. If not, don´t hesitate to ask any questions.
Thank you and kind regards,
Patrick

Hello!
After all that text, I fogrot the most essential information..
We are currently using OpsMgr 2012 SP1 UR4, the monitored server (server_a) has agent version 1.4.1-292 installed.
Thanks for the explanation of how the logprovider works. I tried to execute the logfilereader just to see if there are any errors and everything looks fine to me:
ActionAccount @server_a:/opt/microsoft/scx/bin> ./scxlogfilereader -v
Version: 1.4.1-292 (Labeled_Build - 20130923L)
Here are the latest entry in the scx.log file:
* Microsoft System Center Cross Platform Extensions (SCX)
* Build number: 1.4.1-292 Labeled_Build
* Process id: 23186
* Process started: 2014-03-31T08:29:09,136Z
* Log format: <date> <severity>     [<code module>:<process id>:<thread id>] <message>
2014-03-31T08:29:09,138Z Warning    [scx.logfilereader.ReadLogFile:23186:140522274359072] scxlogfilereader - Unexpected exception: Could not find persisted data: Failed to access filesystem item /var/opt/microsoft/scx/lib/state/ActionAccount/LogFileProvider__ActionAccount_shome_sActionAccount_slogfilewithoutsudo.txtEDST02
2014-03-31T08:29:09,138Z Warning    [scx.core.providers.logfileprovider:5209:140101980321536] LogFileProvider InvokeLogFileReader - Exception: Internal Error: Unexpected return code running '/opt/microsoft/scx/bin/scxlogfilereader -p': 4
2014-03-31T08:29:09,138Z Warning    [scx.core.providers.logfileprovider:5209:140101980321536] BaseProvider::InvokeMethod() - Internal Error: Unexpected return code running '/opt/microsoft/scx/bin/scxlogfilereader -p': 4 - [/home/serviceb/ScxCore_URSP1_SUSE_110_x64/source/code/providers/logfile_provider/logfileprovider.cpp:442]
* Microsoft System Center Cross Platform Extensions (SCX)
* Build number: 1.4.1-292 Labeled_Build
* Process id: 23284
* Process started: 2014-03-31T08:30:06,139Z
* Log format: <date> <severity>     [<code module>:<process id>:<thread id>] <message>
2014-03-31T08:30:06,140Z Warning    [scx.logfilereader.ReadLogFile:23284:140016517941024] scxlogfilereader - Unexpected exception: Could not find persisted data: Failed to access filesystem item /var/opt/microsoft/scx/lib/state/ActionAccount/LogFileProvider__ActionAccount_shome_sActionAccount_stest.txtEDST02
2014-03-31T08:30:06,142Z Warning    [scx.core.providers.logfileprovider:5209:140101980321536] LogFileProvider InvokeLogFileReader - Exception: Internal Error: Unexpected return code running '/opt/microsoft/scx/bin/scxlogfilereader -p': 4
2014-03-31T08:30:06,143Z Warning    [scx.core.providers.logfileprovider:5209:140101980321536] BaseProvider::InvokeMethod() - Internal Error: Unexpected return code running '/opt/microsoft/scx/bin/scxlogfilereader -p': 4 - [/home/serviceb/ScxCore_URSP1_SUSE_110_x64/source/code/providers/logfile_provider/logfileprovider.cpp:442]
Strangely I could not acces the "Action Account User" directory under /var/opt/microsoft/scx/log as "ActionAccount" user. Is it ok for the directory to have the following rights:  drwx------ 2 1001 users? Instead of "1001" it should say "ActionAccount",
right?
This could be a bit far fetched, but perhaps the logfile provider can´t access logfiles as the "ActionAccount" on this server because it needs to write in the scx.log file. But as the "ActionAccount" can´t access the file, the logfile provider throws
an error. And as "Privileged Account" the rule works flawlessly, as the logfile provider running in root context can access everything.
Don´t know if that makes sense, but right now it sounds logical to me.

Similar Messages

  • Secondary monitor does not work after OS X install

    My secondary monitor does not work well after OS X install. The image on my secondary monitor is different even the screen svaer image is different and the mouse can not be seen.

    Try the easy thing first - NVRAM reset:
    Shut down your Mac.
    Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    If that does not work, post back with more info, including the version of Mac OS you are running. How is the external monitor connected, did it ever work, and from what OS X to what was the "OS X install" in your title?

  • Keyboard does not work after using Support Drivers

    I have a Macbook Pro 4,1 15" 2.4GHz C2D, and managed to get Bootcamp installed on it with Win7 Home Pro. I have verified that it runs correctly, but it is missing many of the drivers needed to make things run smoothly. I no longer have my Leopard disks that the machine came, so I figured the WindowsSupportDrivers would be the way to go.
    When I install them and reboot, the keyboard does not work. When I hit capslock, I get the caution notice indicating underneath my password field indicating the capslock key is on, so it's not like my entire keyboard is disabled. The system is unusable right now, since I have to enter my password to login, and it does not take any keyboard input. Using an external keyboard did not resolve this issue.
    I did a system restore to get it back to a usable state for the time being.
    Is there an alternative to the BCA support drivers or the Leopard disk? What's going on with my keyboard after the driver update?

    Maybe you have installed obsolete drivers. If you have Lion, open Boot Camp Assistant (Applications > Utilities) in OS X and download Boot Camp drivers

  • Windows update does not work after using System recovery disk

    I have a Toshiba Satellite c655 with WIndows 7 64 bit Home premium. The hard drive died on it, so I purchased a new hard drive and purchased the appropriate Recovery media from Toshiba. I followed the directions and installed the 3 disks on to the new hard drive. But Windows update does not work I get the following error: Windows update can not currently check for updates, because the service is not running. You may need to restart your PC    No matter what I try, I can not get it to work. And it will not let me install Windows Defender either. Any ideas or help would be appreciated. Thank you in advance for your time on this matter.
    Solved!
    Go to Solution.

    I get errors saying A problem is preventing the troubleshooter from starting.
    That makes two similarities to the following thread. Both Windows Update and Troubleshooters fail to work correctly.
       Trouble with reinstall of Win7 64 on a L505-ES5018
    The fix was to install a new hard disk driver.
       Intel Rapid Storage Technology
    -Jerry

  • Aperture 2.0 Activation Key does not work after using older trial version

    I was using the installed trial version of Aperture 1.5+ in my recently purchased MacBook Pro Duo (December 2007). After using the trial version for 30 days I debated whether to take the plunge ...and then within a few days recieved word that v2.0 was out at 199$. That motivated me ...however, here I am nearly one week later without ability to activate a full blown version of 2.0.
    I recieved the activation key, but it doesn't accept it in the dialog to upgrade in the trial version. Hint seems to be that it is not a serial number I am entering but an activation key.
    I did not order a boxed version, so what do I do now? Support is not too helpful as I have searched Apple's website and have no clue as to where to go.
    Last resort ... I want my $199 back!

    did you download the trial for Aperture 2

  • Report Generation for Excel does not work after using the Application Builder

    I have a VI that writes data to an Excel file using the Report Generation Toolkit. I recently compiled the VI into a single Application (EXE) using the Application Builder. My VI runs its tests properly, but no data is written to Excel. What could be the cause? I don't receive any error messages.

    Hi
    I usually build exe-files, which sometimes also have report functionality.
    Open the Application Builder and check the following things:
    1. Add the following vis: _Word Dynamic VIs.vi, _Excel Dynamic VIs.vi They should be located in the directory ..\LabVIEW X.X\vi.lib\addons\_office in the llbs _wordsub.llb and _exclsub.llb (report1.jpg)
    2. If you use an Installer, go to the Advanced Settings. There you can select some things to include in the Installer. Check if "NI Reports Support" is selected. (report2.jpg)
    These are the things I always do, if I need reports and I never had problems up to now. I made two screen-shots of these settings.
    Hope this helps.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    report.zip ‏25 KB

  • TS3367 Hi, the FaceTime just did not work between my mom and I. It used to work weeks ago, but now it does not work after showing"connecting". I feel frustrated and try all the method I can think of. Still do not work. Hope u can help me. Thanks!

    Hi, the FaceTime just did not work between my mom and I. It used to work weeks ago, but now it does not work after showing"connecting". I feel frustrated and try all the method I can think of. Still do not work. Hope u can help me. Thanks!

    Was it just this one time?  Could be that you, or your mom, were experiencing network problems.  Try again at a later time.

  • My camera does not work after I restored the system, how can I use it again?

    My camera does not work after I restored the system, how can I use it again?
    Thank you for your help!

    Did try to restore "as new device" without using the backup after that?
    Did you try to reset the phone by holding the sleep and home button until the Apple logo coes back again?

  • PCI wireless card does not work after restart - FM2-A55M-E33

    Installed TP-LINK WN751ND wireless PCI card onto FM2-A55M-E33 motherboard. The card works fine after cold start, but does not work after restart. Windows recognises the card, but it gets code 10, cannot start.
    BIOS is updated (v.11.1), as well as drivers and Windows 7 64.
    I suspect that this might be the issue: Incorrect ASPM Transitions on the GPP Interface as found in ChipsetMotherboard_TechDocs/48671.pdf on AMD's official support site.
    Does anyone know more about this issue?

    Great! I've done that and now my card shows up. Thing is, when I try to get an IP address, it won't work. Here is the command output:
    ieee80211 phy0: wl_ops_config: change monitor mode: false (implement)
    ieee80211 phy0: wl_ops_config: change power-save mode: false (implement)
    ieee80211 phy0: wl_ops_bss_info_changed: qos enabled: false (implement)
    And then it times out and no IP is assigned. The thing is, wpa_supplicant stays alive after this time out, and I am unable to kill it (killall -9 wpa_supplicant won't kill it). At this point if I try to reboot the machine, it will stop at 'Rebooting' and won't go anywhere. If I turn off the wireless card in its switch Linux crashes. If I try to get an ip again (by running dhcpcd) the command will hang and not return to the shell anymore.
    I am unable to find any useful information in the logs.
    Got any more suggestions?
    Thanks! (And sorry to disturb so much)

  • Flash player does not work after I installed it

    Flash player does not work after I installed it

    I'm using Mac Osx and my browser is Safari
    Date: Wed, 5 Feb 2014 00:41:29 -0800
    From: [email protected]
    To: [email protected]
    Subject: Flash player does not work after I installed
        Re: Flash player does not work after I installed it
        created by Mike M in Installing Flash Player - View the full discussion
    This is a user-to-user forum, NOT 24/7 support. You're "lucky" I happen to be up at 1:40 am to answer you.
    What OS are you using?
    http://mmonlinedesigns.com/images/os.png
    What browser?
    http://mmonlinedesigns.com/images/browsers.png
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6087541#6087541
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6087541#6087541
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6087541#6087541. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Installing Flash Player at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • My sound system does not work AFTER installing pc to tv wireless connection

    my sound system does not work after installing hp pc to tv wireles device when I am using lap top for other purposes.

    Hi,
    You don’t install VS2010 on the client PC, then where did the Form Invoice not work? When you run it from another version of VS? Or when you run the application with application.exe?
    Based on your description, one form works well, another form does not. I assume that two forms are in two different projects, then please check the .Net Framework used by the two projects. If they are different, you can use the
    one used by the Form contact for Form Invoice.
    Because this issue is a project issue, I recommend you to consult it on some application forum such as Windows Forms General forum for better support.
    VS General Question forum mainly discusses
    the usage of Visual Studio IDE such as
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help
    System and Visual Studio Editor.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • "F11 System Recovery" during boot does not work after Cloning hard drive.

    Problem: “F11 System Recovery” during boot does not work after Cloning hard drive.
    HP Envy m6-1125dx UEFI Notebook Computer with GPT hard drive.
    Original Seagate Hard Disk GPT 700GB with Window 8.0_64 upgraded to Windows 8.1_64
    Startup Menu (F11 System Menu works properly) only on original hard drive.
    Following obtained from Disk Management & diskpart in Command Prompt.
                                     GPT Disk <700GB>
    Partition 1 WINRE NTFS Primary 235MB/400MB [Recovery]
    Partition 2 EFI System FAT32 (LBA) Primary 108MB/260MB [System]
    Partition 3 (NONE) Unformatted Primary 128MB/128MB [Reserve]
    Partition 4 Main NTFS Primary 90GB/195GB [Primary “C”]
    Partition 5 (NONE) NTFS Primary 372MB/450MB [Recovery]
    Partition 6 Data NTFS Primary 7GB/475GB [Primary “E”]
    Partition 7 NTFS Primary 26MB/350MB [Recovery]
    Partition 8 Recovery NTFS Primary 24GB/26GB [Recovery “D”]
    I have Cloned the original hard drive to a new HGST 1TB Hard Drive using four different methods (sector by sector):
    Acronis True Image 2015
    Acronis Backup for PC
    AOMEI Backupper Professional
    Macrium Reflect
    Each time the cloning process completes successfully and has the same original partition arrangement. The computer works properly except when trying to use the “F11 System Menu” key during boot. It gives the following error message:
    “Recovery
    Your PC needs to be repaired
    A required device isn’t connected or can’t be accessed.
    Error code: 0xc0000225
    You need to use the recovery tools on your installation media. If you don’t have any installation media (like a disc or USB device), contact your system administrator or PC manufacturer. “
    Any suggestions why the F11 System Recovery does not work during boot and how to fix the problem would be appreciated. I have does various disk checking and file checking on both the original and new hard drive with no errors.
    Thank you in advanced.

    Hi,
    How did you clone the HDD ? One-for-one or different method ?
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • TX2500Z touchscreen does not work after Windows7 upgrade from HP specific to S/N, etc on laptop.

    My TX2500Z touchscreen does not work after I upgraded to Windows 7. I cannot find any support or drivers, etc. to fix.  I bought Windows 7 directly from HP specific to my P/N and S/N on my TX2500Z.  Any help? Thanks.

    after 2,5 days (spending half a day within the apple shop as well with this problem) i have it all back on track.
    i did a lot of different things: trying to remove and reinstall iPhoto; did a SL installation over the old SL I had on my HD; backing up all the data of course before and reformatting my HD and installing a new clean SL version on it + a new clean version of iLife9 with all the updates and than I migrate with migrate assistant all the data and setting with time machine back onto it, but all this didn't work, because it also migrated the error/bug through time machine with it.
    so at the end i just installed a brand new, clean SL version on my hard drive, than I did the updates and put all my data, photos, docs, movies, mail, bookmarks, music, etc manual back into the system (drag and drop from my external HD, where i had an exact copy of my internal HD) and did all the settings again in all the different programs.
    the only thing i used migrant assistant with time machine for was for the programs. it seems to work now all fine and i even got more free space on my HD, because some of the old stuff i always carried with me but i never used, i didn't take over.
    basically everything is clean now. At least i hope and works fine. touch wood!

  • Apple av adapter does not work after updating ios 5,01

    apple av adapter does not work after ios 5,01. no video on vga monitor. sound goes out on iphone 4 also.

    Thank you for your interest. Last night i tried again. It worked. there is still problem, so i could find out it that monitor is going to power saving mode then voice goes out and no view on monitor. I changed the power saving settings. And worked well. Thnx again.

  • Print size in Photoshop CC does not work after updating

    Print size in Photoshop CC does not work after updating, it was working fine before but now when I click to go to print size either from the menu of right chicking when the hand tool is selected, the image just zooms right out until it is a tiny little box in the centre of the screen, no good what so ever, as I say it was working fine before the update.
    I am using window 7 with 8 gb of ram and an I7 with a 1GB graphics card.
    Can anyone help please?
    thanks
    Fujibill

    Check the Image>Image Size and see what the print size is supposed to to be for the open document.
    Also, resetting the photoshop cc preferences might fix it.
    http://forums.adobe.com/thread/375776?tstart=0

Maybe you are looking for

  • When logging in to yahoo mail, [shift] behaves like the back button. In Opera and IE 11, [shift] works ok, and I login to yahoo mail.

    The [shift] behavior occurs in the yahoo mail password box. It takes me to the previous page as soon as I depress it. Same with both [shift] keys. I use the [shift] for "W" and "+" in my password. HP 2000-2c23dx, Win 8.1 Update. Windows updates curre

  • ATI Radeon HD 4870 / 30''Display low res on Mini DisplayPort

    hello. Since day one, my 30'' CinemaDisplay is working fine on my Mac Pro using a ATI Radeon HD 4870. Today, I wanted to connect a second display. This one's plug is a DVI one (as is that of the 30''), but one that contains the pieces C1 to 4 (cf. ht

  • Can I connect to iMac 27" as external display?

    I'm considering buying 2 iMac 27" to run Windows 7. Can I connect these two together so iMac 1 can use iMac 2 as external display and visa versa. In other words... is the mini display port both for input and output? If yes... does this work under Win

  • Can't edit hyperlink in RoboHTML 10

    When I click on an existing hyperlink and launch the Hyperlink dialog, I can make whatever changes I want, but regardless of whether I make changes or not, when I click "Ok" I get an error beep.  The only way to get of the dialog is the press Cancel

  • IPhoto Won't Sync

    iPhoto won't sync my edited photos. I checked in iTunes to sync ALl photos albums events and faces. I open iPhoto and it's there but when I open my iPod, it's not there; only the original.