[Nagios-users] Plug in to monitor apache status
Hi All, I need to get a plug-in to monitor Apache. I have server-status on and tried check_apache2. But pnp4nagios is giving below error. Please check the documentation for information about the following error. Template /usr/local/pnp4nagios/share/templates/check_apache2.php does not provide array $def[]. Read FAQ online http://docs.pnp4nagios.org/faq/13 + Can you please suggest me a plug-in with pnp4nagios template. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Differentiate receivers based on alert severity?
No , I think in same service definition , you can write notification_options w contact_group us...@foo.com notification_options c contact_group us...@foo.com us...@foo.com Thanks On Mon, Jul 30, 2012 at 2:50 PM, Ruslan Valiyev linux...@gmail.com wrote: Does it mean I have to create two different service templates and specify my emails there? On Mon, Jul 30, 2012 at 11:13 AM, Assaf Flatto nag...@flatto.net wrote: ** Yes , you can use two different contacts , one that has only warning , and the other only for critical . On 30/07/12 09:54, Ruslan Valiyev wrote: Hi, I was wondering if it's possible to achieve something a la: - when CPU alerts are warning, they should go to us...@foo.com - when CPU alerts are critical, they should go to us...@foo.com Ruslan -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- http://linuxmantra.com -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] shell script not working properly as Nagios plugin
Hi Members, I wrote below script to monitor ssh traffic +++ a=$(/usr/bin/sudo /sbin/iptables -vL|/bin/grep ':ssh'|/bin/awk '{print $1}') if [ $a -gt 3 ]; then echo SSH aatempt is TOO High | $a exit 2 else if [ $a -gt 2 ]; then echo SSH aatempt is Average | $a exit 1 else echo No SSH attempts | $a exit 0 fi fi exit 3 + This script is working fine on shell and returning SSH attempt is too high . But when i run it via nagios the output returned OK and print No SSH attempts. What I can notice that variable a not holding any value while running via nagios , while its working fine when running via shell. Can you please drive me in right direction ? Thanks -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] shell script not working properly as Nagios plugin
Yes , Its defined and script running fine when i run it via bash from user nagios . On Fri, Jul 20, 2012 at 5:47 PM, Assaf Flatto nag...@flatto.net wrote: ** On 20/07/12 12:41, vishesh kumar wrote: Hi Members, I wrote below script to monitor ssh traffic +++ a=$(/usr/bin/sudo /sbin/iptables -vL|/bin/grep ':ssh'|/bin/awk '{print $1}') if [ $a -gt 3 ]; then echo SSH aatempt is TOO High | $a exit 2 else if [ $a -gt 2 ]; then echo SSH aatempt is Average | $a exit 1 else echo No SSH attempts | $a exit 0 fi fi exit 3 + This script is working fine on shell and returning SSH attempt is too high . But when i run it via nagios the output returned OK and print No SSH attempts. What I can notice that variable a not holding any value while running via nagios , while its working fine when running via shell. Can you please drive me in right direction ? Thanks -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Is your nagios user defined as allowed to use sudo ? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- http://linuxmantra.com -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] shell script not working properly as Nagios plugin
Thanks for reply , I am able to run command as nagios and its returning right value 120 to me -- [nagios@monitor ~]$ /usr/bin/sudo /sbin/iptables -vL|/bin/grep ':ssh'|/bin/awk '{print $1}' 120 -- On Fri, Jul 20, 2012 at 5:33 PM, Voigt, Thomas thomas.vo...@netkom.dewrote: Hi, is your nagios user allowed to run the sudo command from the first line in your script? Please login as your nagios user and execute the command /usr/bin/sudo /sbin/iptables -vL|/bin/grep ':ssh'|/bin/awk '{print $1}' directly. Do you see any output? -- Regards Thomas Voigt -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- http://linuxmantra.com -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Data Visualization in Nagios
Thanks to all. pnp4nagios now working fine for me . On Wed, May 30, 2012 at 9:17 AM, Paul Dubuc w...@paul.dubuc.org wrote: vishesh kumar wrote: Thanks to all,� pnp4nagios is really amazing. I agree. I installed pnp4nagios and its working great . On http://localhost/php4nagios page i can see multiple graphs for localhost . Now i want similar graphs for my remote system , so should i need to install �pnp4nagios on remote system as well . I am able to monitor network services via nrpe , so what i should do to get graphs for remote system as well.� Thanks You should be seeing graphs for all plugins that provide valid performance data. localhost may be the default for that page, but you should also see links to graphs for other host services by modifying the URL query or (better) getting to them by defining the action_url for your hosts and services to link to them: http://docs.pnp4nagios.org/**pnp-0.6/webfehttp://docs.pnp4nagios.org/pnp-0.6/webfe -- http://linuxmantra.com -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Data Visualization in Nagios
Thanks to all, pnp4nagios is really amazing. I installed pnp4nagios and its working great . On http://localhost/php4nagios page i can see multiple graphs for localhost . Now i want similar graphs for my remote system , so should i need to install pnp4nagios on remote system as well . I am able to monitor network services via nrpe , so what i should do to get graphs for remote system as well. Thanks On Tue, May 29, 2012 at 1:31 PM, ranjib dey dey.ran...@gmail.com wrote: pnp4nagios -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Data Visualization in Nagios
Hi Members, I want to present nagios data in graphics . What should i use for simple for network traffic , disk usage etc in simple graphics . I worked on cacti but i don't know how to integrate it with Nagios . On google searching ,I found NagiosGraph as one of the option . What you suggest ?N Thanks -Vishesh -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] nrpe on ssl
Hi Members, I am new to this list and nagios. I want to know how i can verify that nagios nrpe_check connecting to nrpe daemon via ssl . Thanks Vishesh Kumar -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null