Networking :: Event Handlers Not Working In Nagios
Feb 8, 2011
I have placed the restart-ssh script in /usr/local/nagios/libexec/eventhandler but its not working on seeing the event log the following information is obtained
Though i have checked the script manually by the following command
It works fine with both of the above mentioned commands
I don't know why it is not able to restart ssh when nagios is calling it as event handler
The service definition for ssh in localhost.cfg is as follow:
View 1 Replies
ADVERTISEMENT
Sep 14, 2010
I would need a lead on how to shutdown several virtual machine on our ESX server. We put in place a UPS and now we want to implement a automatic shutdown of the VMs (in a certain order) when our UPS battery goes under the threshold. I do monitor already the battery state. So I just need to put in place the eventhandler. How to proceed?
View 1 Replies
View Related
May 25, 2011
I want to have like 4 machines, each one of them with Nagios and nrpe (plugin+daemon) installed so that every one of the machines could be able to monitor all of the others.. Is there any problem doing this? Or having nrpe+nagios in the same machine is ok?
View 2 Replies
View Related
Jun 29, 2010
Can we use static thread handlers ?
View 1 Replies
View Related
Aug 31, 2010
When I try to log into the webgui I am getting a file to download labled "nagios". When double-clicking the file I get the error " The file /path/to/file cannot be found. Please check the location and try again".
View 10 Replies
View Related
Mar 12, 2010
I have configured Nagios on SLES 10 SP2. I could configure nagios but 2 things are not working correctly.
1.It doesnt show correct disk utilization for /local partition.
2.It doesnt send Alerts.
I have installed NAGIOS (nagios-3.2.0-11.1, nagios-plugins-1.4.14-11.1 and few other which are required to remove dependency) on server and I have installed nagios (nagios-plugins-1.4.14-11.1, nagios-nrpe-client-2.12-11.1 and few other packages to remove dependency) on client.
Configuration files from NAGIOS server: nagios.cfg (Since this file is big, I have copied the relevant portion only. Let me know if any specific info is required from this file)=>
log_file=/var/log/nagios/nagios.log
cfg_file=/etc/nagios/objects/commands.cfg
cfg_file=/etc/nagios/objects/contacts.cfg
cfg_file=/etc/nagios/objects/contactgroups.cfg
cfg_file=/etc/nagios/objects/timeperiods.cfg
[Code].....
View 2 Replies
View Related
May 2, 2011
I install Nagios Core Version 3.2.3 in CentOS 5.5 via rpmforge repo configure ssmpt to sent mail via my gmail account. i test and don't see any in it even some notification to nagiosadmin is get deliver now i create one user in contacts.cfg
Code:
I also add one contact groups
Code:
Now i add one windows xp machine on nagios for monitor (i install NSClient++ 0.3.8.75 and it working fine)
Here is my windows.cfg
Code:
But my problem is when my host goes down i m not getting any notification to my define contactgroup,
View 2 Replies
View Related
Oct 26, 2010
I am on debian lenny and I am trying to make a script that will run in the background and checks the ethernet connection. If the ethernet connection goes down it will connect to wlan. I have found 2 ways of checking ethernet connection, via proc/net/dev and via ifconfig eth0. But if possible I want to avoid polling. So is there any event that is triggered when the table gets disconnect or at least the connection goes down and up?
View 1 Replies
View Related
Feb 15, 2011
My Nagios email Notification is not working, I'm trying to setup external relay server using GMAIL. I'm also using dynamic IP.
Please see the test below:
Here is my PoSTFIX CONFIGURATION:
View 14 Replies
View Related
Apr 8, 2011
I have Nagios working and the check_logfiles plugin installed on my Ubuntu box and NSClient ++ installed on my windows box. My end goal is to be able to get the check_logfiles plugin to flag certain words in Windows Log Files. I can call the check_logfiles from the Ubuntu command line and it works fine when I look at a local log file on the Nagios box. If I try to do something similar but point to a remote windows file the process fails. I have NRPE enabled and I think working on the Windows machine. Before I post Config files etc can someone tell me if my approach is correct? Should I be calling the check_logfiles plugin from the Nagios box or do I need to install the Windows version of Check_logfiles on the remote machine and then make some sort of reference to it in the NSC.ini file on the Windows box.
View 1 Replies
View Related
Jul 9, 2011
Error: Cannot open log file '/usr/local/nagios/var/archives/nagios-07-08-2011-00.log' for reading!
View 2 Replies
View Related
Mar 3, 2010
I use network-manager-pptp to connect to my VPN server. However, occasionally my VPN drops out (although my Internet stays up). I was just wondering how I could make the VPN drop-out trigger a bash script, for example playing a sound to alert me that the VPN has dropped?
View 1 Replies
View Related
Aug 4, 2010
How to see the code behind the nagios plugin: Nagios Checker? I opened the folder which i have downloaded. After that where do i have to go to see the codes? Is it in App_Codes?
View 14 Replies
View Related
Mar 5, 2011
I recently updated to squeeze following the Debian release note steps, and most everything went smoothly. However, I'm now unable to get into the Nagios web interface. The service is still running and sends email notifications of issues as usual, but logging into the web interface gives me a 403 Forbidden error.
View 14 Replies
View Related
May 1, 2010
What are exit handlers ? They are piece of code to execute prior to exit() ?
View 3 Replies
View Related
Nov 5, 2010
The previous version of one of my websites was static and so the URLs looked like this: [url]
A few months ago I re-did the site to be completely dynamic. There are no individual pages for product reviews, just one which pulls the right data from a database. So now, my URLs look like this: [url]
Some fellow ex-googler who specialize in SEO told me that the previous URL scheme was better for search engines because it had the product name. Of course, I have set up redirects from the old naming scheme to the new one but what I would like to do is have 'review.php' handle the request for 'review_XXXX_YYYY.php' without actually doing a redirect... and do this for past and future products. I don't want to have to actually create all these 'review_XXXX_YYYY.php', there would be hundreds, just make it seem like they exist to visitors.
View 7 Replies
View Related
Jul 16, 2011
I like to set firefox to ask me every time what to do when downloading a file. This works well if I want to save to disk, but if I want to use an application I don't get a dropdown with applications to choose, but a browse button which requires the application to be typed every time. To make it a bit clearer, if I have clicked on a pdf file I get this: [URL]. How do I get okular listed in a dropdown instead of the browse button?
View 14 Replies
View Related
Jul 15, 2011
So we monitor all of our disk space, but only get pages for critical. What we would like to do is have one email sent to our team every month with all the "Warnings" for our disk. I have been searching and haven't found a way to do this. Any suggestions?
View 1 Replies
View Related
May 4, 2011
Operating System: Ubuntu 11.04 w/ Unity-2D
I had serveral custom url-handlers setup using gconftool-2 in my old Ubuntu 10.10 setup, but now after reinstalling and updating to Ubuntu 11.04 I can't get a single one to work with Chrome (11.0.696.57) nor other browsers like Midori.
The only solution was to switch to Firefox and setup them manually using network.protocol-handler*
It seems (on the surface) that Chrome insists on opening the links with xdg-open (and if I remember correctly in Ubuntu 10.10 Chrome said it opened the links using the apps set in gconf), but xdg-open only supports the most common http* and ftp* does it not? - Just learned that xdg-open is the default handler for all urls.
I've tried everything, including searching through Chrome's config files, reinstalling Chrome, and tested changing the paths to my apps - but without any luck.
Note that I'm talking about links in Google Chrome, Firefox on the other hand doesn't even check the url-handlers so I had to set them up manually using about:config > network.protocol-handler*
So they work in Firefox when added, but in no other browsers.
Google Chrome opens the links with xdg-open [url] as depicted in the attacheds screenshot, but this throws in error, found in .xsession-errors:
Code:
gvfs-open: svtrip://example.com/: error opening location: The specified location is not supported
View 2 Replies
View Related
Apr 9, 2011
I am currently working on "Creation of Postmortem data logger in Linux on Intel architecture. Its nothing but core utility creation. how the signal handlers for various signals(SIGSEGV,SIGABRT,SIGFPE etc) which produce core dump upon crashing an application internally implemented in Linux kernel. I need to re-write these signal handlers with my own user specific needs and rebuild the kernel. It makes my kernel producing the core file (upon crashing an application) with user specific needs like showing registers,stackdump and backtrace etc.
View 1 Replies
View Related
Apr 28, 2010
I have written interrupt handlers for a keyboard as well as the serial port RS232.
I have seen the book written by O'Reilly w.r.t the device drivers.
I wanted to know *exactly* what parts of Linux kernel should i understand well for having a crystal clear view of writing any kind of device driver ?
View 1 Replies
View Related
Apr 5, 2011
What is the best nagios web frontend available? I want one that allows to add hosts, remove them, configure them, etc. If possible, with a good documentation.
View 3 Replies
View Related
Mar 31, 2011
What are the standard procedures to monitor asterisk with nagios? I downloaded check_asterisk from URL...
View 1 Replies
View Related
May 17, 2011
I've followed all the instructions in nagios documentation to install the nrpe agent in a remote host, but the daemon nrpe is not listening on port.. that means I can't even test it localhost!
netstat -at | grep nrpe
returns nothing.
You added the nrpe entry to your /etc/services file - done
The only_from directive in the /etc/xinetd.d/nrpe file contains an entry for "127.0.0.1" - done
xinetd is installed and started - done
Check the system log files for references about xinetd or nrpe and fix any problems that are reported - syslog empty..
Installed lsof and lsof +M -i4:
xinetd 25680 root 5u IPv4 75987 TCP *:nrpe (LISTEN)
Is there anything else I can do to correct this? I configured this yesterday and it was working ok.. but today when got into computer it stopped working
View 2 Replies
View Related
Apr 8, 2011
Been following the steps to do the manual installation from [URL]:installation, but when I finish I cannot access http://192.168.100.110/nconf -> 192.168.100.110 is the ip address where nconf is installed.
Error:
Forbidden
You don't have permission to access /nconf on this server. Where is the problem? I did everything exactly as they said and got no kind of errors.
View 1 Replies
View Related
Sep 4, 2011
I want to monitor network bandwidth/usage/stats on an interface dedicated to iSCSI traffic.I've read nagios is one of the better solutions available, and I've found a How-To here: Installing Nagios on CentOS 4.x/5.x.But it seems yum won't install it. Am I missing something? Is it no longer possible to install nagios with yum? Should I use a different mirror?
View 6 Replies
View Related
Jan 12, 2010
Nagios - forbidden you dont have access to this server
I had made following changes on httpd.conf file:
ScriptAlias /nagios/cgi-bin/ "/usr/local/nagios/sbin/"
<Directory "/usr/local/nagios/sbin/">
AllowOverride AuthCongig
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
Alias /nagios/ "/usr/local/nagios/share/"
<Directory "/usr/local/nagios/share/">
Options None
AllowOverride AuthCongig
Order allow,deny
Allow from all
</Directory>
View 1 Replies
View Related
Feb 17, 2011
Is it possible to configure nagios to auto detect all the hosts that belong to a network and place them in the cfg files?
View 1 Replies
View Related
Feb 15, 2011
My Nagios email Notification is not working, I'm trying to setup external relay server using GMAIL. I'm also using dynamic IP.
Please see the test below:
Here is my PoSTFIX CONFIGURATION:
View 3 Replies
View Related
Jan 26, 2010
I'm configuring Nagios at the moment, but I'm doubting my approach to transparent switches a bit. It seems from reading the documentation that Nagios wants me to ignore transparent switches, although I also doubt this interpretation of mine.
A little example, a VPN:
Code:
demarcation point
|
[router]
/
[switch][switch]
| / |
[7 clients] [switch] [switch]
/ |
[6 clients] [4 clients] [5 clients]
As you can see, there are 22 clients connected to the router. Since switches don't have an address, they cannot be measured. But if I ignore the switches, the schema is an oversimplified picture of reality. So what I'm looking for is a way to display the switches, even though they don't have an address. What I did was, I created the switches as where they proper fully featured ones, and listening to 127.0.0.1 as address. Luckily, this tricked Nagios. And it works, but it's not very elegant. Is there a better way to approach this pseudo-problem? Perhaps a build-in I overlooked?
View 10 Replies
View Related