Home > HowTo, Linux, Nagios, plugins > nagios report

nagios report

March 28th, 2010 Leave a comment Go to comments

I have a custom script to generate monthly reports about Hosts and Services.

The syntax is pretty simple:

* /usr/local/nagios/libexec/report.pl –email=fel.h2o@gmail.com –type=monthlyservice –debug=0

/usr/local/nagios/libexec/report.pl –email=emailme@gmail.com –type=monthlyservice –debug=1

I usually add it to run once a month one for service and the other for hosts.
To get it working you will need to edit the script.

Download the Code here

Categories: HowTo, Linux, Nagios, plugins Tags: , , , , ,
  1. March 29th, 2010 at 05:45 | #1

    I cant download the script, could you check it ?

    Thanks and congratulations for the blog.

    • April 5th, 2010 at 20:16 | #2

      Sorry Ivo,
      I just fixed the broken link.
      Any modification or improvements in the script is welcome.
      Its not the most clean code but I does the job for me.

      cheers,
      Felipe

  2. Steven
    September 7th, 2011 at 06:51 | #3

    Hi,

    while trying this script, i am getting these errors;
    Wed Sep 7 03:12:24 2011: Retreived URL successfully
    Wed Sep 7 03:12:24 2011: Retreived URL successfully
    can’t open file : No such file or directory
    can’t open file : No such file or directory
    /bin/mv: missing file operand
    Try `/bin/mv –help’ for more information.

    The command i am running; ./report.pl -type=daily (email hard coded)

    Can you please help out?
    thanks
    regards

  1. No trackbacks yet.

VAMOVE *

*