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

                    Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                    Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

                    What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company