Re: [Nagios-users] sms alert notification in Nagios 3.4.1
All works fine until a network issue is there. In this case you loose important sms messages. This is the mainly reason we use an sms gateway only as second choise. Attach a gsm modem on the monitoring system and send out notifications is really simple. look at smstools3.kekekasvi.com i.e. Simon Il 29/08/2012 06:09, Travis Runyard ha scritto: It is setup the same as any email address defined in contacs.cfg. thats why it is so easy -- 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] Notification did not execute
Cannot do that cuz it-s a production server, I have a testing server where I test the alarms with the same configuration and it works If I find something I will let you know. Thanks 2012/8/28 Travis Runyard travisruny...@gmail.com: That is really strange. Have you tried changing its ip to an invalid one and see if you can recreate the problem? On Aug 28, 2012 5:29 PM, Net Warrior netwarrior...@gmail.com wrote: Thanks for your advice, I know what you mean, but this is not the case unfortunately, In the logs I can see the 3 time check was reached and the alarm did not fired, now the server is up and I did not get the notification the server is back on line either. Is critical and not SOFT for the host and the service [1346193488] HOST ALERT: hostname;DOWN;HARD;3;(Host Check Timed Out) [1346193328] SERVICE ALERT: hostname;SSH;CRITICAL;HARD;3;CRITICAL - Socket timeout after 30 seconds [1346198377] HOST ALERT: hostname;UP;SOFT;3;PING OK - Packet loss = 0%, RTA = 4.84 ms This is weird. Thanks for your time and support Regards 2012/8/28 Travis Runyard travisruny...@gmail.com: Your should look at the log before the service notification was suppressed because the host was down. I'm 90% sure the reason why your host down notification was not sent was because the host was in a soft state type and came back online before it was determined to be in a hard state. And you didn't post your linux-server template config so you will have to check your and retry_interval definition. For my host objects I set a retry_interval of 1 and max_check_attemps of 2 in the template so I get notified a little quicker when a host goes down. http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html -Travis Runyard On Tue, Aug 28, 2012 at 4:39 PM, Net Warrior netwarrior...@gmail.com wrote: Hi there guys. I have face something weird, I did not get a notificationn of a down state for a particular host, this is the host config. define service{ use local-service ; Name of service template to use host_name hostname service_description SSH check_command check_ssh flap_detection_enabled 0 notifications_enabled 1 notification_optionsw,u,r,c check_period24x7 check_interval 1 max_check_attempts 3 first_notification_delay0 notification_interval 10 } define host{ use linux-server; Name of host template to use ; This host definition will inherit all variables that are defined ; in (or inherited by) the linux-server host template definition. host_name hostname alias the alias address x.x.x.x contact_groups admins contactsnagiosadmin check_interval 1 max_check_attempts 3 notification_interval 10 flap_detection_enabled 0 first_notification_delay0 } and in the logs I got [1346196987.097821] [032.0] [pid=21145] ** Service Notification Attempt ** Host: 'hostname', Service: 'SSH', Type: 0, Options: 0, Current State: 2, Last Notification: Wed Dec 31 21:00:00 1969 [1346196987.097843] [032.1] [pid=21145] The host is either down or unreachable, so we won't notify contacts about this service. [1346196987.097851] [032.0] [pid=21145] Notification viability test failed. No notification will be sent out. The host is either down or unreachable --- Of coure, so why the notification was not fired? Any idea what could be wrong?, I got some notification with other host and all have the same configuration, I have already restarted nagios Thanks for your time and support Best regards. -- 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
[Nagios-users] Are macros allowed inside custom variables?
Are macros allowed to be used inside custom variables? I'm using Nagios 3.2.3. I was experimenting with using custom variables in host definitions for clusters. I couldn't figure out if there was a way to make this work. It didn't seem to matter how I escaped the $s or not, whether I used $_hostwarn$ or just $_warn$, or if I defined new commands with the custom variables in place of $ARGn$. I already have cluster checks which don't use custom variables and work fine, and other service checks which use custom variables from the host for parameters and also work fine. One of my working cluster checks returns this: CLUSTER OK: dmz_cluster_1: 3 ok, 0 warning, 0 unknown, 0 critical However, I set up another check for the same cluster using custom variables, and it returns this instead: CLUSTER CRITICAL: dmz_cluster_1_foo: 1 ok, 0 warning, 0 unknown, 0 critical Here's an example of what I was trying to accomplish: define host { use esx-server nameesx-cluster host_groups esx_clusters check_command check_cluster!host!@$_warn$:!@$_crit$:!$_hostcluster$ register0 } define host { use esx-cluster host_name esx_cluster_1 alias esx_cluster_1 parents parent1,parent2,parent3 _warn 1 _crit 2 _hostcluster $HOSTSTATEID:parent1$,$HOSTSTATEID:parent2$,$HOSTSTATEID:parent3$ _servicecluster $SERVICESTATEID:parent1:Ping$,$SERVICESTATEID:parent2:Ping$,$SERVICESTATEID:parent3:Ping$ } define service { use standard_service host_name esx_cluster_1 service_description cluster_health display_namecluster_health check_command check_cluster!service!@$_warn$:!@$_crit$:!$_servicecluster$ } define command { command_namecheck_cluster command_line$USER1$/check_cluster --$ARG1$ --label=$HOSTNAME$ --warning=$ARG2$ --critical=$ARG3$ --data=$ARG4$ } -- -Chris Nothing in this message is intended to make or accept an offer or to form a contract, except that an attachment that is an image of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and delete this message immediately. Thank you. -- 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] Remote event handlers using NRPE
All; I'm trying to setup event handlers on remote machines that I am monitoring using NRPE to restart dead or hung services. I've been reading up on a few how-to's I found online but they all seem to require that NRPE be compiled with support for command arguments. Since everything I read about NRPE says that allowing command arguments is a very bad idea, I was wondering if it is even possible to execute remote event handlers without having support for it. Thanks; John -- 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] Remote event handlers using NRPE
I dont have an answer about your NRPE question, but if i had to guess i would say its not possible with out support compiled in. I did recently find this however: http://www.edcint.co.nz/checkwmiplus/ I have it running all kinds of checks via WMI on my domain and it has the ability to restart a hung or dead process, i would recommend you check it out, i like it alot better than NRPE and there is no client to install. Hope that helps. On Wed, Aug 29, 2012 at 6:29 PM, Tech Support supp...@voipbusiness.us wrote: All; I’m trying to setup event handlers on remote machines that I am monitoring using NRPE to restart dead or hung services. I’ve been reading up on a few how-to’s I found online but they all seem to require that NRPE be compiled with support for command arguments. Since everything I read about NRPE says that allowing command arguments is a very bad idea, I was wondering if it is even possible to execute remote event handlers without having support for it. Thanks; John -- 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 -- --- Nick Smith Lamp Post Group IT Support Ext - 800 nsm...@lamppostgroup.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] Remote event handlers using NRPE
WMI assumes you are running Windows… With NRPE I haven't seen a way to do it without being pass arguments. I'm just careful with scripts that can take arguments that they scrub what's being passed in. Dan On Aug 29, 2012, at 6:47 PM, Nick Smith wrote: I dont have an answer about your NRPE question, but if i had to guess i would say its not possible with out support compiled in. I did recently find this however: http://www.edcint.co.nz/checkwmiplus/ I have it running all kinds of checks via WMI on my domain and it has the ability to restart a hung or dead process, i would recommend you check it out, i like it alot better than NRPE and there is no client to install. Hope that helps. On Wed, Aug 29, 2012 at 6:29 PM, Tech Support supp...@voipbusiness.us wrote: All; I’m trying to setup event handlers on remote machines that I am monitoring using NRPE to restart dead or hung services. I’ve been reading up on a few how-to’s I found online but they all seem to require that NRPE be compiled with support for command arguments. Since everything I read about NRPE says that allowing command arguments is a very bad idea, I was wondering if it is even possible to execute remote event handlers without having support for it. Thanks; John -- 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 -- --- Nick Smith Lamp Post Group IT Support Ext - 800 nsm...@lamppostgroup.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 -- 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