Join the community today
Become a Member

Sysadmin Pushover

Discussion in 'System Administration' started by Matt, May 30, 2014.

  1. dooma

    dooma Active Member

    326
    34
    28
    Oct 15, 2016
    Cairo
    Ratings:
    +49
    Local Time:
    2:56 PM
    Yes. I logged in as a root. I'm putting it at : /root/scripts/process_list.txt


    please check attached error :)
     

    Attached Files:

  2. eva2000

    eva2000 Administrator Staff Member

    55,230
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    10:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    does directory /root/scripts exist first ?
     
  3. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    2:56 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    You need to change permissions to read/write for that file
     
  4. dooma

    dooma Active Member

    326
    34
    28
    Oct 15, 2016
    Cairo
    Ratings:
    +49
    Local Time:
    2:56 PM
    Sorry. It wasn't. Now saved. I created the bash and executed it first before creating the process list. does this should be done again ??

    Thank you :)
     
    Last edited: Jul 5, 2017
  5. dooma

    dooma Active Member

    326
    34
    28
    Oct 15, 2016
    Cairo
    Ratings:
    +49
    Local Time:
    2:56 PM
    I created application at my pushover account as a website and I entered my forums link. I added the application's API and the device name which is myiphone to the bash. But I'm receiving the notification over my email every min not at my mobile pushover. do you have any idea regarding that ?

    and What is this process : usr/bin/java ? what's its usage ? it's down.

    Thanks alot:)
     
  6. dooma

    dooma Active Member

    326
    34
    28
    Oct 15, 2016
    Cairo
    Ratings:
    +49
    Local Time:
    2:56 PM
    Modification : I made a mistake my user was wrong. Now am receiving at my mobile.
    I think the script send only notifications to email if the mobile is not working.

    The only issue is Java :D

    lol, I know that you wanna block me :D :D @eva2000
     
  7. eva2000

    eva2000 Administrator Staff Member

    55,230
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    10:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    the process you list depend on what you want to monitor, so if you do not want to monitor java, remove the line
     
  8. dooma

    dooma Active Member

    326
    34
    28
    Oct 15, 2016
    Cairo
    Ratings:
    +49
    Local Time:
    2:56 PM
    Yes, I know. I only asked why do you use it for ex. ?

    Thanks
     
  9. eva2000

    eva2000 Administrator Staff Member

    55,230
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    10:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    nope don't use this script.. i have my own custom ones for private use but it's same concept :)