Debian - Installation of LSI MegaRAID SNMP AGENTWhat's a “battery relearn” on a LSI MegaRaid?LSI MegaRAID Expected Chip Temperature?SNMP agent for LSI MegaRAID does not display updated TemperaturesLSI Megaraid alarm - clearing hotspareHow does LSI MegaRAID actually lay out RAID10 sets?LSI MegaRAID 84016e reboots serverXenserver 6.5 LSI MegaRAIDHow to fix LSI MegaRaid RAID5 after 1 disk failedLSI MegaRaid | Fast Initialize undo/recoversnmp lsi/avago raid controller

Bookshelves: the intruder

How many Dothraki are left as of Game of Thrones S8E5?

Can more than one instance of Bend Luck be applied to the same roll by multiple Wild Magic sorcerers?

Why does string strummed with finger sound different from the one strummed with pick?

Taylor series leads to two different functions - why?

I recently started my machine learning PhD and I have absolutely no idea what I'm doing

Error when running ((x++)) as root

How was the blinking terminal cursor invented?

When did Britain learn about the American Declaration of Independence?

Failing students when it might cause them economic ruin

How to get all possible paths in 0/1 matrix better way?

Why does the U.S military use mercenaries?

Are there any symmetric cryptosystems based on computational complexity assumptions?

Quotient of Three Dimensional Torus by Permutation on Coordinates

What technology would Dwarves need to forge titanium?

What color to choose as "danger" if the main color of my app is red

Why do academics prefer Mac/Linux?

What do you call bracelets you wear around the legs?

How do I balance a campaign consisting of four kobold PCs?

Was Tyrion always a poor strategist?

Large dominating sets in tournaments

Shortest amud or daf in Shas?

How do you cope with rejection?

What's is the easiest way to purchase a stock and hold it



Debian - Installation of LSI MegaRAID SNMP AGENT


What's a “battery relearn” on a LSI MegaRaid?LSI MegaRAID Expected Chip Temperature?SNMP agent for LSI MegaRAID does not display updated TemperaturesLSI Megaraid alarm - clearing hotspareHow does LSI MegaRAID actually lay out RAID10 sets?LSI MegaRAID 84016e reboots serverXenserver 6.5 LSI MegaRAIDHow to fix LSI MegaRaid RAID5 after 1 disk failedLSI MegaRaid | Fast Initialize undo/recoversnmp lsi/avago raid controller






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















My OS is :



Distributor ID: Debian
Description: Debian GNU/Linux 8.9 (jessie)
Release: 8.9
Codename: jessie


I succeded to install the MegaRaid Storage Manager and I can use StorCli.



# dpkg --install lib-utils2_1.00-9_all.deb without errors
# dpkg --install megaraid-storage-manager_17.05.00-3_all.deb without errors

# ./storcli64 /c0 /vall show
Controller = 0
Status = Success
Description = None


Virtual Drives :
==============

---------------------------------------------------------------
DG/VD TYPE State Access Consist Cache Cac sCC Size Name
---------------------------------------------------------------
0/0 RAID1 Optl RW Yes RWBD - ON 278.464 GB OS
1/1 RAID5 Optl RW Yes RWBD - ON 8.180 TB DATA
---------------------------------------------------------------


But now, I would install the snmp agent of my RAID controller.
I used the rpm and I convert it ina deb with alien :



# dpkg -i sas-snmp_17.05-3_amd64.deb
(Lecture de la base de données... 54953 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de sas-snmp_17.05-3_amd64.deb ...
Dépaquetage de sas-snmp (17.05-3) ...
Paramétrage de sas-snmp (17.05-3) ...
Starting snmpd
/etc/lsi_mrdsnmp/sas/install: 182: [: 0: unexpected operator
[ ok ] Restarting snmpd (via systemctl): snmpd.service.
Starting LSI SNMP Agent
/etc/lsi_mrdsnmp/sas/install: 210: [: 0: unexpected operator
Starting LSI SNMP Agent:
/etc/init.d/lsi_mrdsnmpd: 153: /etc/init.d/lsi_mrdsnmpd: daemon: not found


I edited /etc/init.d/lsi_mrdsnmpd to resolve the problem of the daemon command by replacing it by :



....
$agent -c $SNMPDCONF
#daemon $agent -c $SNMPDCONF
....


Moreover, I added a symbolic link to solve a problem of library :



/usr/lib/libsas_objects.so -> /usr/lib64/libsas_objects.so.1


But now, when I try to start the service :



# ./lsi_mrdsnmpd start
Starting LSI SNMP Agent:
LSI MegaRAID SNMP Agent Ver 3.18.0.5 (Oct 30th, 2012) Started


I don't have nothing in a ps command. And if I verify the syslog log, I have :



Oct 16 16:43:45 Server1 MegaRAID SNMP AGENT: Error in getting Shared Memory(lsi_mrdsnmpmain)


If I try to execute manually the command :



# ./lsi_mrdsnmpagent -c /etc/snmp/snmpd.conf
LSI MegaRAID SNMP Agent Ver 3.18.0.5 (Oct 30th, 2012) Started


Same result on the syslog.



I tried to strace the start of the service :
Here th eend of the strace :



16:46:54 fstat(3, st_dev=makedev(8, 1), st_ino=8128118, st_mode=S_IFREG) = 0
16:46:54 fstat(3, st_dev=makedev(8, 1), st_ino=8128118, st_mode=S_IFREG) = 0
16:46:54 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f712d916000
16:46:54 read(3, "TZif2ff..., 4096) = 2945
16:46:54 lseek(3, -1863, SEEK_CUR) = 1082
16:46:54 read(3, "TZif2rr270r37377377377377k310J213377377377377221`P213377377377377233Gx360377377377377233327,p377377377377234274221p377377377377235300H360377377377377236211376p3773773773772..."..., 4096) = 1863
16:46:54 close(3) = 0
16:46:54 munmap(0x7f712d916000, 4096) = 0
16:46:54 socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 3
16:46:54 connect(3, sa_family=AF_LOCAL, sun_path="/dev/log", 110) = 0
16:46:54 sendto(3, "<30>Oct 16 16:46:54 LSI MegaRAID SNMP Agent: Agent Ver 3.18.0.5 (Oct 30th, 2012) Startedn", 89, MSG_NOSIGNAL, NULL, 0) = 89
16:46:54 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f712d90ba10) = 4715
16:46:54 exit_group(0) = ?
16:46:54 +++ exited with 0 +++


But now, I'm blocked and i don't know to resolve this problem, have you got an idea of that ?



Thanks,



EDIT



Well, today the service is running :



root 16777 1 0 16:35 ? 00:00:00 /etc/lsi_mrdsnmp/lsi_mrdsnmpagent -c /etc/snmp/snmpd.conf
root 16778 16777 0 16:35 ? 00:00:00 /etc/lsi_mrdsnmp/lsi_mrdsnmpagent -c /etc/snmp/snmpd.conf


youpi!!!



But...when I try to pass a OID to the agent via lsi_mrdsnmpmain it returns nothing and the result code is 1 :



# /usr/sbin/lsi_mrdsnmpmain -g .1.3.6.1.4.1.3582.5.1.1.0
# echo $?
1


I strace the service lsi_mrdsnmpagent and I can read that each time i try lsi_mrdsnmpmain:



futex(0x7f61f938e000, FUTEX_WAIT, 0, NULL) = 0
write(1, "####INSIDE GET#####n", 20) = -1 EBADF (Bad file descriptor)
futex(0x7f61f938e020, FUTEX_WAKE, 1) = 1
futex(0x7f61f938e000, FUTEX_WAIT, 0, NULL) = 0
write(1, "####INSIDE GET#####n", 20) = -1 EBADF (Bad file descriptor)
futex(0x7f61f938e020, FUTEX_WAKE, 1) = 1
futex(0x7f61f938e000, FUTEX_WAIT, 0, NULL) = 0
write(1, "####INSIDE GET#####n", 20) = -1 EBADF (Bad file descriptor)
futex(0x7f61f938e020, FUTEX_WAKE, 1) = 1
futex(0x7f61f938e000, FUTEX_WAIT, 0, NULL


And if i strace lsi_mrdsnmpmain I obtain:



15:41:36 rt_sigaction(SIGRT_1, 0x7fe5257a8a40, [], SA_RESTORER, NULL, 8) = 0
15:41:36 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
15:41:36 getrlimit(RLIMIT_STACK, rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY) = 0
15:41:36 shmget(0x884b9, 1024, 0600) = 131072
15:41:36 shmat(131072, 0, 0) = 0x7fe525bdc000
15:41:36 futex(0x7fe525bdc000, FUTEX_WAKE, 1) = 1
15:41:36 futex(0x7fe525bdc020, FUTEX_WAIT, 0, NULL) = 0
15:41:36 shmdt(0x7fe525bdc000) = 0
15:41:36 exit_group(1) = ?
15:41:36 +++ exited with 1 +++


If you have ideas about the EBADF (Bad file descriptor) or ideas to access mib...



Thanks !










share|improve this question






























    0















    My OS is :



    Distributor ID: Debian
    Description: Debian GNU/Linux 8.9 (jessie)
    Release: 8.9
    Codename: jessie


    I succeded to install the MegaRaid Storage Manager and I can use StorCli.



    # dpkg --install lib-utils2_1.00-9_all.deb without errors
    # dpkg --install megaraid-storage-manager_17.05.00-3_all.deb without errors

    # ./storcli64 /c0 /vall show
    Controller = 0
    Status = Success
    Description = None


    Virtual Drives :
    ==============

    ---------------------------------------------------------------
    DG/VD TYPE State Access Consist Cache Cac sCC Size Name
    ---------------------------------------------------------------
    0/0 RAID1 Optl RW Yes RWBD - ON 278.464 GB OS
    1/1 RAID5 Optl RW Yes RWBD - ON 8.180 TB DATA
    ---------------------------------------------------------------


    But now, I would install the snmp agent of my RAID controller.
    I used the rpm and I convert it ina deb with alien :



    # dpkg -i sas-snmp_17.05-3_amd64.deb
    (Lecture de la base de données... 54953 fichiers et répertoires déjà installés.)
    Préparation du dépaquetage de sas-snmp_17.05-3_amd64.deb ...
    Dépaquetage de sas-snmp (17.05-3) ...
    Paramétrage de sas-snmp (17.05-3) ...
    Starting snmpd
    /etc/lsi_mrdsnmp/sas/install: 182: [: 0: unexpected operator
    [ ok ] Restarting snmpd (via systemctl): snmpd.service.
    Starting LSI SNMP Agent
    /etc/lsi_mrdsnmp/sas/install: 210: [: 0: unexpected operator
    Starting LSI SNMP Agent:
    /etc/init.d/lsi_mrdsnmpd: 153: /etc/init.d/lsi_mrdsnmpd: daemon: not found


    I edited /etc/init.d/lsi_mrdsnmpd to resolve the problem of the daemon command by replacing it by :



    ....
    $agent -c $SNMPDCONF
    #daemon $agent -c $SNMPDCONF
    ....


    Moreover, I added a symbolic link to solve a problem of library :



    /usr/lib/libsas_objects.so -> /usr/lib64/libsas_objects.so.1


    But now, when I try to start the service :



    # ./lsi_mrdsnmpd start
    Starting LSI SNMP Agent:
    LSI MegaRAID SNMP Agent Ver 3.18.0.5 (Oct 30th, 2012) Started


    I don't have nothing in a ps command. And if I verify the syslog log, I have :



    Oct 16 16:43:45 Server1 MegaRAID SNMP AGENT: Error in getting Shared Memory(lsi_mrdsnmpmain)


    If I try to execute manually the command :



    # ./lsi_mrdsnmpagent -c /etc/snmp/snmpd.conf
    LSI MegaRAID SNMP Agent Ver 3.18.0.5 (Oct 30th, 2012) Started


    Same result on the syslog.



    I tried to strace the start of the service :
    Here th eend of the strace :



    16:46:54 fstat(3, st_dev=makedev(8, 1), st_ino=8128118, st_mode=S_IFREG) = 0
    16:46:54 fstat(3, st_dev=makedev(8, 1), st_ino=8128118, st_mode=S_IFREG) = 0
    16:46:54 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f712d916000
    16:46:54 read(3, "TZif2ff..., 4096) = 2945
    16:46:54 lseek(3, -1863, SEEK_CUR) = 1082
    16:46:54 read(3, "TZif2rr270r37377377377377k310J213377377377377221`P213377377377377233Gx360377377377377233327,p377377377377234274221p377377377377235300H360377377377377236211376p3773773773772..."..., 4096) = 1863
    16:46:54 close(3) = 0
    16:46:54 munmap(0x7f712d916000, 4096) = 0
    16:46:54 socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 3
    16:46:54 connect(3, sa_family=AF_LOCAL, sun_path="/dev/log", 110) = 0
    16:46:54 sendto(3, "<30>Oct 16 16:46:54 LSI MegaRAID SNMP Agent: Agent Ver 3.18.0.5 (Oct 30th, 2012) Startedn", 89, MSG_NOSIGNAL, NULL, 0) = 89
    16:46:54 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f712d90ba10) = 4715
    16:46:54 exit_group(0) = ?
    16:46:54 +++ exited with 0 +++


    But now, I'm blocked and i don't know to resolve this problem, have you got an idea of that ?



    Thanks,



    EDIT



    Well, today the service is running :



    root 16777 1 0 16:35 ? 00:00:00 /etc/lsi_mrdsnmp/lsi_mrdsnmpagent -c /etc/snmp/snmpd.conf
    root 16778 16777 0 16:35 ? 00:00:00 /etc/lsi_mrdsnmp/lsi_mrdsnmpagent -c /etc/snmp/snmpd.conf


    youpi!!!



    But...when I try to pass a OID to the agent via lsi_mrdsnmpmain it returns nothing and the result code is 1 :



    # /usr/sbin/lsi_mrdsnmpmain -g .1.3.6.1.4.1.3582.5.1.1.0
    # echo $?
    1


    I strace the service lsi_mrdsnmpagent and I can read that each time i try lsi_mrdsnmpmain:



    futex(0x7f61f938e000, FUTEX_WAIT, 0, NULL) = 0
    write(1, "####INSIDE GET#####n", 20) = -1 EBADF (Bad file descriptor)
    futex(0x7f61f938e020, FUTEX_WAKE, 1) = 1
    futex(0x7f61f938e000, FUTEX_WAIT, 0, NULL) = 0
    write(1, "####INSIDE GET#####n", 20) = -1 EBADF (Bad file descriptor)
    futex(0x7f61f938e020, FUTEX_WAKE, 1) = 1
    futex(0x7f61f938e000, FUTEX_WAIT, 0, NULL) = 0
    write(1, "####INSIDE GET#####n", 20) = -1 EBADF (Bad file descriptor)
    futex(0x7f61f938e020, FUTEX_WAKE, 1) = 1
    futex(0x7f61f938e000, FUTEX_WAIT, 0, NULL


    And if i strace lsi_mrdsnmpmain I obtain:



    15:41:36 rt_sigaction(SIGRT_1, 0x7fe5257a8a40, [], SA_RESTORER, NULL, 8) = 0
    15:41:36 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
    15:41:36 getrlimit(RLIMIT_STACK, rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY) = 0
    15:41:36 shmget(0x884b9, 1024, 0600) = 131072
    15:41:36 shmat(131072, 0, 0) = 0x7fe525bdc000
    15:41:36 futex(0x7fe525bdc000, FUTEX_WAKE, 1) = 1
    15:41:36 futex(0x7fe525bdc020, FUTEX_WAIT, 0, NULL) = 0
    15:41:36 shmdt(0x7fe525bdc000) = 0
    15:41:36 exit_group(1) = ?
    15:41:36 +++ exited with 1 +++


    If you have ideas about the EBADF (Bad file descriptor) or ideas to access mib...



    Thanks !










    share|improve this question


























      0












      0








      0








      My OS is :



      Distributor ID: Debian
      Description: Debian GNU/Linux 8.9 (jessie)
      Release: 8.9
      Codename: jessie


      I succeded to install the MegaRaid Storage Manager and I can use StorCli.



      # dpkg --install lib-utils2_1.00-9_all.deb without errors
      # dpkg --install megaraid-storage-manager_17.05.00-3_all.deb without errors

      # ./storcli64 /c0 /vall show
      Controller = 0
      Status = Success
      Description = None


      Virtual Drives :
      ==============

      ---------------------------------------------------------------
      DG/VD TYPE State Access Consist Cache Cac sCC Size Name
      ---------------------------------------------------------------
      0/0 RAID1 Optl RW Yes RWBD - ON 278.464 GB OS
      1/1 RAID5 Optl RW Yes RWBD - ON 8.180 TB DATA
      ---------------------------------------------------------------


      But now, I would install the snmp agent of my RAID controller.
      I used the rpm and I convert it ina deb with alien :



      # dpkg -i sas-snmp_17.05-3_amd64.deb
      (Lecture de la base de données... 54953 fichiers et répertoires déjà installés.)
      Préparation du dépaquetage de sas-snmp_17.05-3_amd64.deb ...
      Dépaquetage de sas-snmp (17.05-3) ...
      Paramétrage de sas-snmp (17.05-3) ...
      Starting snmpd
      /etc/lsi_mrdsnmp/sas/install: 182: [: 0: unexpected operator
      [ ok ] Restarting snmpd (via systemctl): snmpd.service.
      Starting LSI SNMP Agent
      /etc/lsi_mrdsnmp/sas/install: 210: [: 0: unexpected operator
      Starting LSI SNMP Agent:
      /etc/init.d/lsi_mrdsnmpd: 153: /etc/init.d/lsi_mrdsnmpd: daemon: not found


      I edited /etc/init.d/lsi_mrdsnmpd to resolve the problem of the daemon command by replacing it by :



      ....
      $agent -c $SNMPDCONF
      #daemon $agent -c $SNMPDCONF
      ....


      Moreover, I added a symbolic link to solve a problem of library :



      /usr/lib/libsas_objects.so -> /usr/lib64/libsas_objects.so.1


      But now, when I try to start the service :



      # ./lsi_mrdsnmpd start
      Starting LSI SNMP Agent:
      LSI MegaRAID SNMP Agent Ver 3.18.0.5 (Oct 30th, 2012) Started


      I don't have nothing in a ps command. And if I verify the syslog log, I have :



      Oct 16 16:43:45 Server1 MegaRAID SNMP AGENT: Error in getting Shared Memory(lsi_mrdsnmpmain)


      If I try to execute manually the command :



      # ./lsi_mrdsnmpagent -c /etc/snmp/snmpd.conf
      LSI MegaRAID SNMP Agent Ver 3.18.0.5 (Oct 30th, 2012) Started


      Same result on the syslog.



      I tried to strace the start of the service :
      Here th eend of the strace :



      16:46:54 fstat(3, st_dev=makedev(8, 1), st_ino=8128118, st_mode=S_IFREG) = 0
      16:46:54 fstat(3, st_dev=makedev(8, 1), st_ino=8128118, st_mode=S_IFREG) = 0
      16:46:54 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f712d916000
      16:46:54 read(3, "TZif2ff..., 4096) = 2945
      16:46:54 lseek(3, -1863, SEEK_CUR) = 1082
      16:46:54 read(3, "TZif2rr270r37377377377377k310J213377377377377221`P213377377377377233Gx360377377377377233327,p377377377377234274221p377377377377235300H360377377377377236211376p3773773773772..."..., 4096) = 1863
      16:46:54 close(3) = 0
      16:46:54 munmap(0x7f712d916000, 4096) = 0
      16:46:54 socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 3
      16:46:54 connect(3, sa_family=AF_LOCAL, sun_path="/dev/log", 110) = 0
      16:46:54 sendto(3, "<30>Oct 16 16:46:54 LSI MegaRAID SNMP Agent: Agent Ver 3.18.0.5 (Oct 30th, 2012) Startedn", 89, MSG_NOSIGNAL, NULL, 0) = 89
      16:46:54 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f712d90ba10) = 4715
      16:46:54 exit_group(0) = ?
      16:46:54 +++ exited with 0 +++


      But now, I'm blocked and i don't know to resolve this problem, have you got an idea of that ?



      Thanks,



      EDIT



      Well, today the service is running :



      root 16777 1 0 16:35 ? 00:00:00 /etc/lsi_mrdsnmp/lsi_mrdsnmpagent -c /etc/snmp/snmpd.conf
      root 16778 16777 0 16:35 ? 00:00:00 /etc/lsi_mrdsnmp/lsi_mrdsnmpagent -c /etc/snmp/snmpd.conf


      youpi!!!



      But...when I try to pass a OID to the agent via lsi_mrdsnmpmain it returns nothing and the result code is 1 :



      # /usr/sbin/lsi_mrdsnmpmain -g .1.3.6.1.4.1.3582.5.1.1.0
      # echo $?
      1


      I strace the service lsi_mrdsnmpagent and I can read that each time i try lsi_mrdsnmpmain:



      futex(0x7f61f938e000, FUTEX_WAIT, 0, NULL) = 0
      write(1, "####INSIDE GET#####n", 20) = -1 EBADF (Bad file descriptor)
      futex(0x7f61f938e020, FUTEX_WAKE, 1) = 1
      futex(0x7f61f938e000, FUTEX_WAIT, 0, NULL) = 0
      write(1, "####INSIDE GET#####n", 20) = -1 EBADF (Bad file descriptor)
      futex(0x7f61f938e020, FUTEX_WAKE, 1) = 1
      futex(0x7f61f938e000, FUTEX_WAIT, 0, NULL) = 0
      write(1, "####INSIDE GET#####n", 20) = -1 EBADF (Bad file descriptor)
      futex(0x7f61f938e020, FUTEX_WAKE, 1) = 1
      futex(0x7f61f938e000, FUTEX_WAIT, 0, NULL


      And if i strace lsi_mrdsnmpmain I obtain:



      15:41:36 rt_sigaction(SIGRT_1, 0x7fe5257a8a40, [], SA_RESTORER, NULL, 8) = 0
      15:41:36 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
      15:41:36 getrlimit(RLIMIT_STACK, rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY) = 0
      15:41:36 shmget(0x884b9, 1024, 0600) = 131072
      15:41:36 shmat(131072, 0, 0) = 0x7fe525bdc000
      15:41:36 futex(0x7fe525bdc000, FUTEX_WAKE, 1) = 1
      15:41:36 futex(0x7fe525bdc020, FUTEX_WAIT, 0, NULL) = 0
      15:41:36 shmdt(0x7fe525bdc000) = 0
      15:41:36 exit_group(1) = ?
      15:41:36 +++ exited with 1 +++


      If you have ideas about the EBADF (Bad file descriptor) or ideas to access mib...



      Thanks !










      share|improve this question
















      My OS is :



      Distributor ID: Debian
      Description: Debian GNU/Linux 8.9 (jessie)
      Release: 8.9
      Codename: jessie


      I succeded to install the MegaRaid Storage Manager and I can use StorCli.



      # dpkg --install lib-utils2_1.00-9_all.deb without errors
      # dpkg --install megaraid-storage-manager_17.05.00-3_all.deb without errors

      # ./storcli64 /c0 /vall show
      Controller = 0
      Status = Success
      Description = None


      Virtual Drives :
      ==============

      ---------------------------------------------------------------
      DG/VD TYPE State Access Consist Cache Cac sCC Size Name
      ---------------------------------------------------------------
      0/0 RAID1 Optl RW Yes RWBD - ON 278.464 GB OS
      1/1 RAID5 Optl RW Yes RWBD - ON 8.180 TB DATA
      ---------------------------------------------------------------


      But now, I would install the snmp agent of my RAID controller.
      I used the rpm and I convert it ina deb with alien :



      # dpkg -i sas-snmp_17.05-3_amd64.deb
      (Lecture de la base de données... 54953 fichiers et répertoires déjà installés.)
      Préparation du dépaquetage de sas-snmp_17.05-3_amd64.deb ...
      Dépaquetage de sas-snmp (17.05-3) ...
      Paramétrage de sas-snmp (17.05-3) ...
      Starting snmpd
      /etc/lsi_mrdsnmp/sas/install: 182: [: 0: unexpected operator
      [ ok ] Restarting snmpd (via systemctl): snmpd.service.
      Starting LSI SNMP Agent
      /etc/lsi_mrdsnmp/sas/install: 210: [: 0: unexpected operator
      Starting LSI SNMP Agent:
      /etc/init.d/lsi_mrdsnmpd: 153: /etc/init.d/lsi_mrdsnmpd: daemon: not found


      I edited /etc/init.d/lsi_mrdsnmpd to resolve the problem of the daemon command by replacing it by :



      ....
      $agent -c $SNMPDCONF
      #daemon $agent -c $SNMPDCONF
      ....


      Moreover, I added a symbolic link to solve a problem of library :



      /usr/lib/libsas_objects.so -> /usr/lib64/libsas_objects.so.1


      But now, when I try to start the service :



      # ./lsi_mrdsnmpd start
      Starting LSI SNMP Agent:
      LSI MegaRAID SNMP Agent Ver 3.18.0.5 (Oct 30th, 2012) Started


      I don't have nothing in a ps command. And if I verify the syslog log, I have :



      Oct 16 16:43:45 Server1 MegaRAID SNMP AGENT: Error in getting Shared Memory(lsi_mrdsnmpmain)


      If I try to execute manually the command :



      # ./lsi_mrdsnmpagent -c /etc/snmp/snmpd.conf
      LSI MegaRAID SNMP Agent Ver 3.18.0.5 (Oct 30th, 2012) Started


      Same result on the syslog.



      I tried to strace the start of the service :
      Here th eend of the strace :



      16:46:54 fstat(3, st_dev=makedev(8, 1), st_ino=8128118, st_mode=S_IFREG) = 0
      16:46:54 fstat(3, st_dev=makedev(8, 1), st_ino=8128118, st_mode=S_IFREG) = 0
      16:46:54 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f712d916000
      16:46:54 read(3, "TZif2ff..., 4096) = 2945
      16:46:54 lseek(3, -1863, SEEK_CUR) = 1082
      16:46:54 read(3, "TZif2rr270r37377377377377k310J213377377377377221`P213377377377377233Gx360377377377377233327,p377377377377234274221p377377377377235300H360377377377377236211376p3773773773772..."..., 4096) = 1863
      16:46:54 close(3) = 0
      16:46:54 munmap(0x7f712d916000, 4096) = 0
      16:46:54 socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 3
      16:46:54 connect(3, sa_family=AF_LOCAL, sun_path="/dev/log", 110) = 0
      16:46:54 sendto(3, "<30>Oct 16 16:46:54 LSI MegaRAID SNMP Agent: Agent Ver 3.18.0.5 (Oct 30th, 2012) Startedn", 89, MSG_NOSIGNAL, NULL, 0) = 89
      16:46:54 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f712d90ba10) = 4715
      16:46:54 exit_group(0) = ?
      16:46:54 +++ exited with 0 +++


      But now, I'm blocked and i don't know to resolve this problem, have you got an idea of that ?



      Thanks,



      EDIT



      Well, today the service is running :



      root 16777 1 0 16:35 ? 00:00:00 /etc/lsi_mrdsnmp/lsi_mrdsnmpagent -c /etc/snmp/snmpd.conf
      root 16778 16777 0 16:35 ? 00:00:00 /etc/lsi_mrdsnmp/lsi_mrdsnmpagent -c /etc/snmp/snmpd.conf


      youpi!!!



      But...when I try to pass a OID to the agent via lsi_mrdsnmpmain it returns nothing and the result code is 1 :



      # /usr/sbin/lsi_mrdsnmpmain -g .1.3.6.1.4.1.3582.5.1.1.0
      # echo $?
      1


      I strace the service lsi_mrdsnmpagent and I can read that each time i try lsi_mrdsnmpmain:



      futex(0x7f61f938e000, FUTEX_WAIT, 0, NULL) = 0
      write(1, "####INSIDE GET#####n", 20) = -1 EBADF (Bad file descriptor)
      futex(0x7f61f938e020, FUTEX_WAKE, 1) = 1
      futex(0x7f61f938e000, FUTEX_WAIT, 0, NULL) = 0
      write(1, "####INSIDE GET#####n", 20) = -1 EBADF (Bad file descriptor)
      futex(0x7f61f938e020, FUTEX_WAKE, 1) = 1
      futex(0x7f61f938e000, FUTEX_WAIT, 0, NULL) = 0
      write(1, "####INSIDE GET#####n", 20) = -1 EBADF (Bad file descriptor)
      futex(0x7f61f938e020, FUTEX_WAKE, 1) = 1
      futex(0x7f61f938e000, FUTEX_WAIT, 0, NULL


      And if i strace lsi_mrdsnmpmain I obtain:



      15:41:36 rt_sigaction(SIGRT_1, 0x7fe5257a8a40, [], SA_RESTORER, NULL, 8) = 0
      15:41:36 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
      15:41:36 getrlimit(RLIMIT_STACK, rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY) = 0
      15:41:36 shmget(0x884b9, 1024, 0600) = 131072
      15:41:36 shmat(131072, 0, 0) = 0x7fe525bdc000
      15:41:36 futex(0x7fe525bdc000, FUTEX_WAKE, 1) = 1
      15:41:36 futex(0x7fe525bdc020, FUTEX_WAIT, 0, NULL) = 0
      15:41:36 shmdt(0x7fe525bdc000) = 0
      15:41:36 exit_group(1) = ?
      15:41:36 +++ exited with 1 +++


      If you have ideas about the EBADF (Bad file descriptor) or ideas to access mib...



      Thanks !







      snmp hardware-raid debian-jessie lsi megaraid






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 17 '17 at 14:53







      Sorcha

















      asked Oct 16 '17 at 14:53









      SorchaSorcha

      1,17548




      1,17548




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Ok!! Now it works perfectly.
          To answer my own question the error from the lsimrdsnmpmain was from the user which the snmpd process started.
          In my conf, the daemon snmpd was started with the user 'snmp' and the daemon lsimrdsnmpagent was started with the user root. I modified the user os the daemon snmpd in /etc/defaults/snmpd.conf and now the two process can speak together very well.



          I hope this response will help other persons who want to run the lsi megaraid sas tools on a debian.






          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "2"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f878714%2fdebian-installation-of-lsi-megaraid-snmp-agent%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Ok!! Now it works perfectly.
            To answer my own question the error from the lsimrdsnmpmain was from the user which the snmpd process started.
            In my conf, the daemon snmpd was started with the user 'snmp' and the daemon lsimrdsnmpagent was started with the user root. I modified the user os the daemon snmpd in /etc/defaults/snmpd.conf and now the two process can speak together very well.



            I hope this response will help other persons who want to run the lsi megaraid sas tools on a debian.






            share|improve this answer



























              0














              Ok!! Now it works perfectly.
              To answer my own question the error from the lsimrdsnmpmain was from the user which the snmpd process started.
              In my conf, the daemon snmpd was started with the user 'snmp' and the daemon lsimrdsnmpagent was started with the user root. I modified the user os the daemon snmpd in /etc/defaults/snmpd.conf and now the two process can speak together very well.



              I hope this response will help other persons who want to run the lsi megaraid sas tools on a debian.






              share|improve this answer

























                0












                0








                0







                Ok!! Now it works perfectly.
                To answer my own question the error from the lsimrdsnmpmain was from the user which the snmpd process started.
                In my conf, the daemon snmpd was started with the user 'snmp' and the daemon lsimrdsnmpagent was started with the user root. I modified the user os the daemon snmpd in /etc/defaults/snmpd.conf and now the two process can speak together very well.



                I hope this response will help other persons who want to run the lsi megaraid sas tools on a debian.






                share|improve this answer













                Ok!! Now it works perfectly.
                To answer my own question the error from the lsimrdsnmpmain was from the user which the snmpd process started.
                In my conf, the daemon snmpd was started with the user 'snmp' and the daemon lsimrdsnmpagent was started with the user root. I modified the user os the daemon snmpd in /etc/defaults/snmpd.conf and now the two process can speak together very well.



                I hope this response will help other persons who want to run the lsi megaraid sas tools on a debian.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Oct 19 '17 at 5:52









                SorchaSorcha

                1,17548




                1,17548



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Server Fault!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f878714%2fdebian-installation-of-lsi-megaraid-snmp-agent%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

                    Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

                    Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020