Is it possible to generate png files manually ?

hi
I'm looking for a way to schedule some regular mailing with cpu pool load information.
For example is there a way to mail such dashboad page with all that png pictures .
I know alerting attach some pictures , but i need to send them regularly even when alert is not fired .
So probably i should use some script from lpar2rrd home like dashboard.pl or dashboard.sh  but what how to use them ?
thanks
Dynia

Comments

  • Hi,

    it is easy, create simple shell script with using wget.
    Check apache access log to see what URL you need for each graph.
    Then just get wanted grahs via wget regulary, email, save etc ...
  • Unfortunately is's not so easy in access.log filei got
    - [04/Dec/2017:13:34:02 +0100] "GET /lpar2rrd-cgi/detail-graph.sh?host=HMC1&server=BFG01PDR&lpar=pool&item=pool&time=d&type_sam=m&detail=2&entitle=0&nonedb=1512390842 HTTP/1.1" 200 4352
    10.42.142.175 - - [04/Dec/2017:13:34:02 +0100] "GET /lpar2rrd-cgi/detail-graph.sh?host=HMC1&server=BFG02RDR&lpar=pool&item=pool&time=d&type_sam=m&detail=2&entitle=0&nonedb=1512390842 HTTP/1.1" 200 3756
    10.42.142.175 - - [04/Dec/2017:13:34:02 +0100] "GET /lpar2rrd-cgi/detail-graph.sh?host=HMC1&server=BFG01PDR&lpar=pool-multi&item=lparagg&time=d&type_sam=m&detail=2&entitle=0&nonedb=1512390842 HTTP/1.1" 200 7133
    10.42.142.175 - - [04/Dec/2017:13:34:02 +0100] "GET /lpar2rrd-cgi/detail-graph.sh?host=HMC1&server=BFG02RDR&lpar=pool-multi&item=lparagg&time=d&type_sam=m&detail=2&entitle=0&nonedb=1512390842 HTTP/1.1" 200 11851
    10.42.142.175 - - [04/Dec/2017:13:34:03 +0100] "GET /lpar2rrd-cgi/detail-graph.sh?host=HMC1&server=BFG01PDR&lpar=pool&item=pool&time=d&type_sam=m&detail=2&entitle=0&nonedb=1512390842 HTTP/1.1" 200 4352
    10.42.142.175 - - [04/Dec/2017:13:34:03 +0100] "GET /lpar2rrd-cgi/detail-graph.sh?host=HMC1&server=BFG02RDR&lpar=pool&item=pool&time=d&type_sam=m&detail=2&entitle=0&nonedb=1512390842 HTTP/1.1" 200 3756
    10.42.142.175 - - [04/Dec/2017:13:34:03 +0100] "GET /lpar2rrd-cgi/detail-graph.sh?host=HMC1&server=BFG01PDR&lpar=pool-multi&item=lparagg&time=d&type_sam=m&detail=2&entitle=0&nonedb=1512390842 HTTP/1.1" 200 7133
    10.42.142.175 - - [04/Dec/2017:13:34:03 +0100] "GET /lpar2rrd-cgi/detail-graph.sh?host=HMC1&server=BFG02RDR&lpar=pool-multi&item=lparagg&time=d&type_sam=m&detail=2&entitle=0&nonedb=1512390842 HTTP/1.1" 200 11851

    so there is no name of pictures files, there are generated dynamically probably ,
    so i need to figure out which script generate them and maybe run them manually
    thanks

  • wget <some params> http://<your site>/lpar2rrd-cgi/detail-graph.sh?host=HMC1&server=BFG02RDR&lpar=pool&item=pool&time=d&type_sam=m&detail=2&entitle=0

    Gives you server BFG02RDR thorugh HMC1, pool graph, daily (time=d), detail=2 means small graph for dashboard, detail=1 is big one for a popup and detail=0 is normla size one
  • Pavel does it work for you ? Generally i got some errors and nothing is downloaded  :(
    thanks
  • I have not tested it but we have already adviced it some our users and it works for them.
    What is the error?
    Try this one just to ge sure, there is a parameter at the end.
    wget <some params> http://<your site>/lpar2rrd-cgi/detail-graph.sh?host=HMC1&server=BFG02RDR&lpar=pool&item=pool&time=d&type_sam=m&detail=2&entitle=0&nonedb=1512390842
  • hi
    ok it seems my mistake i forgot to encapsulate http.. string i quotation marks :)
    it should look like this "http://..."
    right now it works .
    thanks a lot



Sign In or Register to comment.